Al-A'raf 7:96
وَلَوْ أَنَّ أَهْلَ ٱلْقُرَىٰٓ ءَامَنُوا۟ وَٱتَّقَوْا۟ لَفَتَحْنَا عَلَيْهِم بَرَكَـٰتٍ مِّنَ ٱلسَّمَآءِ وَٱلْأَرْضِ وَلَـٰكِن كَذَّبُوا۟ فَأَخَذْنَـٰهُم بِمَا كَانُوا۟ يَكْسِبُونَ
Walaw anna ahla alqura amanoowattaqaw lafatahna AAalayhim barakatinmina assama-i wal-ardi walakinkaththaboo faakhathnahum bima kanooyaksiboon
And if only the people of the cities had believed and feared Allāh, We would have opened [i.e., bestowed] upon them blessings from the heaven and the earth; but they denied [the messengers], so We seized them for what they were earning.
If the people of the towns believed and feared Allah, We would have opened for them blessings from the heavens and the earth, but they disbelieved. So, We seized them because of what they used to earn for themselves.