Surah Al-'Ankabut 29:40
فَكُلًّا أَخَذْنَا بِذَنۢبِهِۦ ۖ فَمِنْهُم مَّنْ أَرْسَلْنَا عَلَيْهِ حَاصِبًا وَمِنْهُم مَّنْ أَخَذَتْهُ ٱلصَّيْحَةُ وَمِنْهُم مَّنْ خَسَفْنَا بِهِ ٱلْأَرْضَ وَمِنْهُم مَّنْ أَغْرَقْنَا ۚ وَمَا كَانَ ٱللَّهُ لِيَظْلِمَهُمْ وَلَـٰكِن كَانُوٓا۟ أَنفُسَهُمْ يَظْلِمُونَ
So each We seized for his sin; and among them were those upon whom We sent a storm of stones, and among them were those who were seized by the blast [from the sky], and among them were those whom We caused the earth to swallow, and among them were those whom We drowned. And Allāh would not have wronged them, but it was they who were wronging themselves.
Translation: Saheeh International
Tafsir
So each of those mentioned We seized for his sin; and among them were some upon whom We unleashed a squall of stones as in the case of the people of Lot and among them were some who were seized by the Cry such as Thamūd and among them were some whom We made the earth swallow such as Korah and among them were some whom …
Excerpt from Tafsir al-Jalalayn, commentary on 29:40, via Quran.com. The reader has the full commentary and 9 more tafsirs.