Hud - 11:117

وَمَا كَانَ رَبُّكَ لِيُهْلِكَ الْقُرَى بِظُلْمٍ وَأَهْلُهَا مُصْلِحُونَ
[11:117]
And it did not beseem your Lord to have destroyed the towns tyrannously, while their people acted well.
Nor would thy Lord be the One to destroy communities for a single wrong-doing, if its members were likely to mend.
In truth thy Lord destroyed not the townships tyrannously while their folk were doing right.