Al-A'raf
7:96

Al-A'raf 96

وَلَوْ أَنَّ أَهْلَ الْقُرَىٰ آمَنُوا وَاتَّقَوْا لَفَتَحْنَا عَلَيْهِمْ بَرَكَاتٍ مِنَ السَّمَاءِ وَالْأَرْضِ وَلَٰكِنْ كَذَّبُوا فَأَخَذْنَاهُمْ بِمَا كَانُوا يَكْسِبُونَ

Va lav anna ahlal kurea eamanoo vattakaav la fataahnea aalayhim barakeatin minas sameai val aardı va leakin kazzaboo fa ahaazneahum bimea keanoo yaksiboon(yaksiboona).

If the people of that country had believed (had been âmenû, had wished to reach their spirit to Allah before death) and had had takwa (spiritual armor), We would certainly have opened up for them abundance from the heaven and the earth. But they rejected. So, We seized (punished) them on account of what they used to earn.

...