Surah Hud — Ayah 117 (11:117)
وَمَا كَانَ رَبُّكَ لِيُهۡلِكَ ٱلۡقُرَىٰ بِظُلۡمٖ وَأَهۡلُهَا مُصۡلِحُونَ ١١٧
English translation (Saheeh International)
And your Lord would not have destroyed the cities unjustly while their people were reformers.
Brief commentary
Your Lord, O Messenger, would not destroy any town if its inhabitants were acting correctly on earth. He would only destroy it if the inhabitants were causing corruption by disbelief, disobedience and sins.