Surah At-Tawba

9:70

أَلَمْ يَأْتِهِمْ نَبَأُ ٱلَّذِينَ مِن قَبْلِهِمْ قَوْمِ نُوحٍۢ وَعَادٍۢ وَثَمُودَ وَقَوْمِ إِبْرَٰهِيمَ وَأَصْحَٰبِ مَدْيَنَ وَٱلْمُؤْتَفِكَٰتِ ۚ أَتَتْهُمْ رُسُلُهُم بِٱلْبَيِّنَٰتِ ۖ فَمَا كَانَ ٱللَّهُ لِيَظْلِمَهُمْ وَلَٰكِن كَانُوٓا۟ أَنفُسَهُمْ يَظْلِمُونَ

Has there not reached them the news of those before them - the people of Noah and [the tribes of] 'Aad and Thamud and the people of Abraham and the companions of Madyan and the towns overturned? Their messengers came to them with clear proofs. And Allah would never have wronged them, but they were wronging themselves.

Tafsir 9:70

Have the hypocrites not heard of what previous disbelieving communities did and what their end was? The news of the people of Noah, Hūd, Ṣāliḥ, Abraham, the inhabitants of Madyan and the towns of the nation of Lot? Their messengers came to them with clear proof and evidence. Allah was not unjust in punishing them, as their messengers had warned them, but they were unjust to themselves because of their disbelief in Allah and rejection of His messengers.