In The Name of Allaah, The Most Merciful, The Bestower of Mercy
Allaah (The Most high) said:
إِنَّ قَـٰرُونَ ڪَانَ مِن قَوۡمِ مُوسَىٰ فَبَغَىٰ عَلَيۡهِمۡۖ وَءَاتَيۡنَـٰهُ مِنَ ٱلۡكُنُوزِ مَآ إِنَّ مَفَاتِحَهُ ۥ لَتَنُوٓأُ بِٱلۡعُصۡبَةِ أُوْلِى ٱلۡقُوَّةِ إِذۡ قَالَ لَهُ ۥ قَوۡمُهُ ۥ لَا تَفۡرَحۡۖ إِنَّ ٱللَّهَ لَا يُحِبُّ ٱلۡفَرِحِينَ (٧٦) وَٱبۡتَغِ فِيمَآ ءَاتَٮٰكَ ٱللَّهُ ٱلدَّارَ ٱلۡأَخِرَةَۖ وَلَا تَنسَ نَصِيبَكَ مِنَ ٱلدُّنۡيَاۖ وَأَحۡسِن ڪَمَآ أَحۡسَنَ ٱللَّهُ إِلَيۡكَۖ وَلَا تَبۡغِ ٱلۡفَسَادَ فِى ٱلۡأَرۡضِۖ إِنَّ ٱللَّهَ لَا يُحِبُّ ٱلۡمُفۡسِدِينَ (٧٧) قَالَ إِنَّمَآ أُوتِيتُهُ ۥ عَلَىٰ عِلۡمٍ عِندِىٓۚ أَوَلَمۡ يَعۡلَمۡ أَنَّ ٱللَّهَ قَدۡ أَهۡلَكَ مِن قَبۡلِهِۦ مِنَ ٱلۡقُرُونِ مَنۡ هُوَ أَشَدُّ مِنۡهُ قُوَّةً۬ وَأَڪۡثَرُ جَمۡعً۬اۚ وَلَا يُسۡـَٔلُ عَن ذُنُوبِهِمُ ٱلۡمُجۡرِمُونَ (٧٨) فَخَرَجَ عَلَىٰ قَوۡمِهِۦ فِى زِينَتِهِۦۖ قَالَ ٱلَّذِينَ يُرِيدُونَ ٱلۡحَيَوٰةَ ٱلدُّنۡيَا يَـٰلَيۡتَ لَنَا مِثۡلَ مَآ أُوتِىَ قَـٰرُونُ إِنَّهُ ۥ لَذُو حَظٍّ عَظِيمٍ۬ (٧٩) وَقَالَ ٱلَّذِينَ أُوتُواْ ٱلۡعِلۡمَ وَيۡلَڪُمۡ ثَوَابُ ٱللَّهِ خَيۡرٌ۬ لِّمَنۡ ءَامَنَ وَعَمِلَ صَـٰلِحً۬ا وَلَا يُلَقَّٮٰهَآ إِلَّا ٱلصَّـٰبِرُونَ (٨٠) فَخَسَفۡنَا بِهِۦ وَبِدَارِهِ ٱلۡأَرۡضَ فَمَا ڪَانَ لَهُ ۥ مِن فِئَةٍ۬ يَنصُرُونَهُ ۥ مِن دُونِ ٱللَّهِ وَمَا كَانَ مِنَ ٱلۡمُنتَصِرِينَ (٨١)وَأَصۡبَحَ ٱلَّذِينَ تَمَنَّوۡاْ مَكَانَهُ ۥ بِٱلۡأَمۡسِ يَقُولُونَ وَيۡكَأَنَّ ٱللَّهَ يَبۡسُطُ ٱلرِّزۡقَ لِمَن يَشَآءُ مِنۡ عِبَادِهِۦ وَيَقۡدِرُۖ لَوۡلَآ أَن مَّنَّ ٱللَّهُ عَلَيۡنَا لَخَسَفَ بِنَاۖ وَيۡكَأَنَّهُ ۥ لَا يُفۡلِحُ ٱلۡكَـٰفِرُونَ (٨٢) تِلۡكَ ٱلدَّارُ ٱلۡأَخِرَةُ نَجۡعَلُهَا لِلَّذِينَ لَا يُرِيدُونَ عُلُوًّ۬ا فِى ٱلۡأَرۡضِ وَلَا فَسَادً۬اۚ وَٱلۡعَـٰقِبَةُ لِلۡمُتَّقِينَ
Verily, Qarun (Korah) was of Musa’s (Moses) people, but he behaved arrogantly towards them. And We gave him of the treasures, that of which the keys would have been a burden to a body of strong men. When his people said to him: “Do not be glad (with ungratefulness to Allah’s Favours). Verily! Allah likes not those who are glad (with ungratefulness to Allah’s Favours).
But seek, with that (wealth) which Allah has bestowed on you, the home of the Hereafter, and forget not your portion of legal enjoyment in this world, and do good as Allah has been good to you, [وَلَا تَبۡغِ ٱلۡفَسَادَ فِى ٱلۡأَرۡضِۖ – and seek not mischief in the land]- meaning: through pride, disobedience (to Allaah), preoccupying yourself with the blessings (bestowed upon you by Allaah) at the expense of (obedience to Allaah, being thankful etc) [Ref 1]; [إِنَّ ٱللَّهَ لَا يُحِبُّ ٱلۡمُفۡسِدِينَ -. Verily, Allah likes not the Mufsidun (those who commit great crimes and sins, oppressors, tyrants, mischief-makers, corrupts).
He said: “This has been given to me only because of knowledge I possess.” Did he not know that Allah had destroyed before him generations, men who were stronger than him in might and greater in the amount (of riches) they had collected. But the Mujrimun (criminals, disbelievers, polytheists, sinners, etc.) will not be questioned of their sins (because Allah knows them well, so they will be punished without account).
So he went forth before his people in his pomp. Those who were desirous of the life of the world, said: “Ah, would that we had the like of what Qarun (Korah) has been given? Verily! He is the owner of a great fortune.”
But those who had been given (religious) knowledge said: “Woe to you! The Reward of Allah (in the Hereafter) is better for those who believe and do righteous good deeds, and this none shall attain except those who are patient (in following the truth).”
So We caused the earth to swallow him and his dwelling place. Then he had no group or party to help him against Allah, nor was he one of those who could save themselves.
And those who had desired (for a position like) his position the day before, began to say: “Know you not that it is Allah Who enlarges the provision or restricts it to whomsoever He pleases of His slaves. Had it not been that Allah was Gracious to us, He could have caused the earth to swallow us up (also)! Know you not that the disbelievers will never be successful.
That home of the Hereafter (i.e. Paradise), We shall assign to those who rebel not against the truth with pride and oppression in the land nor do mischief by committing crimes. And the good end is for the Muttaqun [28:76-83]
[Ref 1: Tayseer al-Kareem Ar-Rahmaan Fee Tafseer Kalaam Al-Mannaan’ by Imaam As-Sadi (rahimahullaah). Abridged & slightly paraphrased]