You are reading a tafsir for the group of verses 29:39 to 29:40
وَقَارُوْنَ
وَفِرْعَوْنَ
وَهَامٰنَ ۫
وَلَقَدْ
جَآءَهُمْ
مُّوْسٰی
بِالْبَیِّنٰتِ
فَاسْتَكْبَرُوْا
فِی
الْاَرْضِ
وَمَا
كَانُوْا
سٰبِقِیْنَ
۟ۚۖ
فَكُلًّا
اَخَذْنَا
بِذَنْۢبِهٖ ۚ
فَمِنْهُمْ
مَّنْ
اَرْسَلْنَا
عَلَیْهِ
حَاصِبًا ۚ
وَمِنْهُمْ
مَّنْ
اَخَذَتْهُ
الصَّیْحَةُ ۚ
وَمِنْهُمْ
مَّنْ
خَسَفْنَا
بِهِ
الْاَرْضَ ۚ
وَمِنْهُمْ
مَّنْ
اَغْرَقْنَا ۚ
وَمَا
كَانَ
اللّٰهُ
لِیَظْلِمَهُمْ
وَلٰكِنْ
كَانُوْۤا
اَنْفُسَهُمْ
یَظْلِمُوْنَ
۟
3

Whenever the addressee communities rejected the prophets sent to them, they were destroyed by calamities which burst upon them either from the heavens or from the earth. Lot’s community was subjected to the curse of high-velocity winds that bore stones. The ‘Ad, the Thamud and the people of Midian were punished by thunder and lightning sent down upon them. Korah, at God’s behest, was swallowed by the earth. Pharaoh and Haman were drowned in the sea. The common reason for all these punishments was the false pride of the concerned persons, i.e. their rejecting the call of Truth for the reason that it would put an end to their high status.