And those who had wished for his position the previous day began to say, "Oh, how Allāh extends provision to whom He wills of His servants and restricts it! If not that Allāh had conferred favor on us, He would have caused it to swallow us. Oh, how the disbelievers do not succeed!"
How Qarun and His Dwelling Place were swallowed up by the Earth
After telling us about Qarun's conceit and pride in his adornments, and how he was arrogant towards his people and transgressed against them, Allah then tells us how he and his dwelling place were swallowed up by the earth. This was also reported in the Sahih by Al-Bukhari from Salim, who said that his father told him that the Messenger of Allah ﷺ said:
(While a man was dragging his lower garment, he was swallowed up and he will remain sinking down into the earth until the Day of Resurrection.) He also recorded something similar from Salim from Abu Hurayrah from the Prophet . Imam Ahmad recorded that Abu Sa`id said, "The Messenger of Allah ﷺ said:
وَقَالَ الَّذِينَ أُوتُوا الْعِلْمَ وَيْلَكُمْ (And said those who were given knowledge - 28:80). This verse has compared the knowledgeable persons with الَّذِينَ يُرِيدُونَ الْحَيَاةَ الدُّنْيَا (Those who are desirous of the worldly life - 28:79), which clearly indicates that it is not the trait of knowledgeable persons to aspire for the acquisition of wealth and to make it the object of life. They always keep their eyes toward the lasting benefits of the Hereafter. As for the mundane wealth, they take it only to fulfill their day-to-day needs, and stay content with that.
Tazkirul Quran
Maulana Wahiduddin KhanOn ayahs 82–83
According to the Bible, Moses cursed Korah for his evil deeds, and God caused him, his companions and his treasure to be swallowed up by the earth. This was visibly demonstrated by God as an example to clarify what the final result would be of leaving off the worship of God and adopting the worship of wealth. The amenities of the world are in fact given as a trial of human beings. These are provided to man, by the will of God in greater or lesser quantities. It is the duty of man to be patient if he receives fewer amenities and to be grateful if he receives more. This is the only way to the salvation and success of man.
Uthmani text of the Madinah mushaf (King Fahd Complex). Translation: Saheeh International. Tafsir via Quran.com.