أَلَمْ يَأْتِهِمْ نَبَأُ ٱلَّذِينَ مِن قَبْلِهِمْ قَوْمِ نُوحٍ وَعَادٍ وَثَمُودَ وَقَوْمِ إِبْرَٰهِيمَ وَأَصْحَـٰبِ مَدْيَنَ وَٱلْمُؤْتَفِكَـٰتِ ۚ أَتَتْهُمْ رُسُلُهُم بِٱلْبَيِّنَـٰتِ ۖ فَمَا كَانَ ٱللَّهُ لِيَظْلِمَهُمْ وَلَـٰكِن كَانُوٓا۟ أَنفُسَهُمْ يَظْلِمُونَ
“Have they not received the stories of those [destroyed] before them: the people of Noah, Ad, and Thamud, the people of Abraham, the residents of Madyan (مدين - Midian), and the overturned cities [of Lot]? Their Messengers came to them with clear proofs. Allah would have never wronged them, but it was they who wronged themselves.”
Part of the well-established hypocrites-who-stayed-behind-from-Tabuk passage of Surat al-Tawbah.