Al-Qasas 28:59
وَمَا كَانَ رَبُّكَ مُهْلِكَ ٱلْقُرَىٰ حَتَّىٰ يَبْعَثَ فِىٓ أُمِّهَا رَسُولًا يَتْلُوا۟ عَلَيْهِمْ ءَايَـٰتِنَا ۚ وَمَا كُنَّا مُهْلِكِى ٱلْقُرَىٰٓ إِلَّا وَأَهْلُهَا ظَـٰلِمُونَ
Wama kana rabbuka muhlikaalqura hatta yabAAatha fee ommiharasoolan yatloo AAalayhim ayatina wamakunna muhlikee alqura illa waahluha thalimoon
And never would your Lord have destroyed the cities until He had sent to their mother [i.e., principal city] a messenger reciting to them Our verses. And We would not destroy the cities except while their people were wrongdoers.
And your Lord is not such as He would destroy the towns unless he had sent to their central place a messenger who recites to them Our verses, nor are We such as would destroy the towns unless their people are wrongdoers.