Hud 11:117
وَمَا كَانَ رَبُّكَ لِيُهْلِكَ ٱلْقُرَىٰ بِظُلْمٍ وَأَهْلُهَا مُصْلِحُونَ
Wama kana rabbuka liyuhlikaalqura bithulmin waahluha muslihoon
And your Lord would not have destroyed the cities unjustly while their people were reformers.
Your Lord is not such that He would destroy the towns unjustly while their people are good in their ways.