Al-A'raf 7:96
SAHIHوَلَوْ أَنَّ أَهْلَ ٱلْقُرَىٰٓ ءَامَنُوا۟ وَٱتَّقَوْا۟ لَفَتَحْنَا عَلَيْهِم بَرَكَٰتٍۢ مِّنَ ٱلسَّمَآءِ وَٱلْأَرْضِ وَلَٰكِن كَذَّبُوا۟ فَأَخَذْنَٰهُم بِمَا كَانُوا۟ يَكْسِبُونَ
And if only the people of the cities had believed and feared Allah, We would have opened upon them blessings from the heaven and the earth; but they denied [the messengers], so We seized them for what they were earning."
Wa law anna ahlal quraaa aamanoo wattaqaw lafatahnaa 'alaihim barakaatim minas samaaa'i wal ardi wa laakin kazzaboo fa akhaznaahum bimaa kaanoo yaksiboon
Tafsir (Commentary)
<h2>Blessings come with Faith, while Kufr brings Torment</h2><p>Allah mentions here the little faith of the people of the towns to whom He sent Messengers. In another instance, Allah said, </p><div class="arabic uthmani">فَلَوْلاَ كَانَتْ قَرْيَةٌ ءَامَنَتْ فَنَفَعَهَآ إِيمَانُهَا إِلاَّ قَوْمَ يُونُسَ لَمَّآ ءَامَنُواْ كَشَفْنَا عَنْهُمْ عَذَابَ الخِزْىِ فِى الْحَيَوةَ الدُّنْيَا وَمَتَّعْنَاهُمْ إِلَى حِينٍ </div><p>(Was there any town (community) that believed (after seeing the punishment), and its faith (at that moment) saved it (from the punishment) -- Except the people of Yunus; when they believed, We removed from them the torment of disgrace in the life of the (present) world, and permitted them to enjoy for a while.) 10:98 This Ayah indicates that no city believed in its entirety, except the city of Prophet Yunus, for they all believed after they were stricken by punishment. Allah said (about Prophet Yunus), </p><div class="arabic uthmani">وَأَرْسَلْنَـهُ إِلَى مِاْئَةِ أَلْفٍ أَوْ يَزِيدُونَ - فَـَامَنُواْ فَمَتَّعْنَـهُمْ إِلَى حِينٍ </div><p>(And We sent him to a hundred thousand (people) or even more. And they believed; so We gave them enjoyment for a while.) 37:147-148 Allah said in another Ayah, </p><div class="arabic uthmani">وَمَآ أَرْسَلْنَا فِى قَرْيَةٍ مِّن نَّذِيرٍ</div><p>(And We did not send a warner to a township....) 34:34 Allah said …
Other Translations
And if the people of the townships had believed and kept from evil, surely We should have opened for them blessings from the sky and from the earth. But (unto every messenger) they gave the lie, and so We seized them on account of what they used to earn.
If the people of the towns had but believed and feared Allah, We should indeed have opened out to them (All kinds of) blessings from heaven and earth; but they rejected (the truth), and We brought them to book for their misdeeds.
And if the people of the towns had believed and had the Taqwa (piety), certainly, We should have opened for them blessings from the heaven and the earth, but they belied (the Messengers). So We took them (with punishment) for what they used to earn (polytheism and crimes, etc.).
Had the people of the towns believed and turned righteous, We would have opened for them the blessings of the heaven and the earth; but they rejected the truth, so We seized them by what they were doing.