Surah Al-Israa

17:16

وَإِذَآ أَرَدْنَآ أَن نُّهْلِكَ قَرْيَةً أَمَرْنَا مُتْرَفِيهَا فَفَسَقُوا۟ فِيهَا فَحَقَّ عَلَيْهَا ٱلْقَوْلُ فَدَمَّرْنَٰهَا تَدْمِيرًۭا

And when We intend to destroy a city, We command its affluent but they defiantly disobey therein; so the word comes into effect upon it, and We destroy it with [complete] destruction.

Tafsir 17:16

When I decided to destroy a town because of its wrongdoing, I instructed those who became reckless because of affluence, to obey Allah but they did not comply. And instead they disobeyed Him and transgressed, so the word of the decimating punishment became justified against them and I destroyed them completely.