I am sorry, i meant to say that what happens to souls that are done with the punishment is not mentioned, brother Joseph wrote this about this issue that i also wanted to share
As-salam alaykum
From my humble perspective, it is noteworthy that just because the punishment in hell may not be eternal, this does not imply that after the punishment is complete, one will be granted open access to the upper echelons of felicity / heaven.
Hell will INDEED be the abode of the sinners and they will indeed taste this punishment. but it is the 'EXTENT / DURATION' that is under discussion from a Quran’s perspective, which presents the concept of ‘proportionality’ with the gravity of one's ill-deeds (Proportionate punishment). Hence there is no contradiction with verses such as 7:40.
As to what happens to the soul after the punishment is completed (regardless of intensity / severity or duration), this is not expounded upon by the Quran which remains wholly silent on this matter.
Hence, one's focus is to remain on the accountability of one's soul, seeking God's good favour and not His wrath. Arguably, even the thought of a day of God’s wrath brings one down on to their quivering knees.
Furthermore, it is important to remember that from a Quran's perspective, there are numerous ranks in heaven depending on one's extent of righteousness as there are ranks within hell.
However, it also remains clear from the Quran that not everyone will receive the same intensity (or arguable duration) of punishment as this will wholly be dependant on the extent of the sinner’s ill-deeds.
Here is the Quranic evidence:
"Except boiling / scalding water and a paralysing cold. REQUITAL PROPORTIONED (* jaza'an wifaqan) (to their evil deeds)*" 78:25-26
* jaza'an wifaqan - An appropriate recompense / proportional punishment
“But those who have earned evil WILL HAVE A REWARD OF THE LIKE OF THE EVIL (bimith’liha)*...” 10:27
* i.e. PROPORTIONAL PUNISHMENT
"Indeed the hypocrites will be in the lowest depths of the Fire (al-darki'l-asfali min-al-nar*): no helper will you find for them" 4.145
* al-darki'l-asfali min-al-nar - This implies ranks and depths / severity of punishments. i.e. PROPORTIONAL PUNISHMENT
"...Cause Pharaoh's folk to enter the most severest chastisement (ashaddal-adhab)!"" 40:46
* ashaddal-adhab - This implies that there exists a range of severity for punishment in the hellfire.
As noted above, Pharaoh and his folk will receive the most dire / severe of God's punishment. This also implies that not every sinner will receive the same punishment. It is only the most wicked, that will endure the severest of God's punishments.
092.014
“Therefore have I warned you of the flaming fire”
092.015
“Which only the MOST WRETCHED (Arabic: Ashqa) must endure”
Furthermore, from a Quran's perspective, 'fire' is not the only type of punishment for the sinner in Hell. This is often a very common, but restrictive interpretation in Muslim thought.
'Ghassaq' in verse 78:25 in the context of punishment also implies extreme coldness or a paralysing cold whereby one 'burns' by reason of its intense dark bitter coldness. (Except boiling water and a paralysing cold...78-25) This interpretation is not only given weight by lexicons but more importantly by the Quran, where one notes the two types of torments in verse 38:57 where boiling fluid (hamim) is contrasted with 'ghassaq' and is arguably elucidated as two extreme forms of punishment (i.e. in pairs or of two extreme kinds ) - azwajun) in verse 38:58.
038.057
"This is so! Then let them taste it, boiling/ scalding fluid and a paralysing cold"
038.058
"And other of its type IN PAIRS (azwajun) (the two extremes)!"
The Quran expounds different types of punishments.
The paralysing cold (78.25), scorching fire and scolding water and shade of black smoke (56.43) burning till it changes the colour and skins of man (74.29) and every time their skin is roasted it will be recreated (4.56), They will eat from the deadly tree of Zuqqum with its food like the heads of devils (37.62-68) and like molten brass will boil in their bellies like boiling scolding water (44.43-46) and it will cut up their bowels to pieces (47.15). They will also drink boiling water because of the intensity of their thirst like that of camels (56.55), from a boiling spring (88.5) and eat food of bitter thorns that neither nourishes nor avails against hunger (88.6-7). The fuel of fire is men and stones (66.6) and their garments are of melted copper and their faces will be covered in fire (14.49-50).
However, as dire and devastating as these warnings are (May God have mercy on our souls), one must never lose sight of the fact that the Quran also makes it clear that 'punishment' remains 'PROPORTIONAL' and that God remains Most Just.
Thus it can be asked - Is an endless punishment befitting for a finite crime during life? The Quran does appear to suggest that the concept of proportionality will apply and that duration may not be infinite as the article argues.
I hope that clarifies, God willing.
Joseph