Answer: These two verses, along with the ones that precede them, depict the scene of the Day of Resurrection. The Most High says: “Indeed in that is a sign for whoever fears the punishment of the Hereafter. That is a Day for which mankind will be gathered, and that is a Day witnessed. And We delay it only for a limited term. On the Day it comes no soul will speak except by His permission; among them will be the wretched and the blessed. As for those who are wretched, they will be in the Fire; for them therein is violent exhaling and inhaling” (Hūd 103–106) — up to the end of the two verses in question.
He — exalted is He — makes clear that on that momentous Day people will fall into two groups: the wretched and the blessed. He then explains the recompense of the wretched and the recompense of the blessed: “As for those who are wretched, they will be in the Fire; for them therein is violent exhaling and inhaling, abiding therein as long as the heavens and the earth endure.” The exegetes have differed over the meaning of His words “as long as the heavens and the earth endure.” One view is that this follows the idiom of the Arabs: when they wish to describe something as everlasting they say, “It will last as long as the heavens and the earth.” Thus what is meant here is unrestricted perpetuity, in accordance with their customary style.
Another view holds that what is intended is the genus of the heavens and the earth, for the Hereafter will also have a heaven and an earth, though they are not this present heaven and earth; Allah the Most High says, “On the Day when the earth will be replaced by another earth, and the heavens as well, and they will appear before Allah, the One, the All-Compelling” (Ibrāhīm 48). Hence “the earth” and “the heavens” here denote the genus, even though the specific entities differ. The meaning, therefore, is that these disbelievers will never leave the Fire; they are consigned to it for all eternity.
As for the exception in His words “except as your Lord wills” that appears in both verses, the exception in the first verse concerning the wretched — “abiding therein as long as the heavens and the earth endure, except as your Lord wills” — the opinion of most exegetes is that what is intended by this exception