Quran 11:117 — Hud (Hud)
Your Lord never annihilates any community unjustly, while its people are righteous.
[11:116] If only some of those among the previous generations possessed enough intelligence to forbid evil! Only a few of them deserved to be saved by us. As for the transgressors, they were preoccupied with their material luxuries; they were guilty.
[11:118] Had your Lord willed, all the people would have been one congregation (of believers). But they will always dispute (the truth).