Al-A'raaf • EN-TAFSIR-IBN-ABBAS
﴿ وَلَوْ أَنَّ أَهْلَ ٱلْقُرَىٰٓ ءَامَنُوا۟ وَٱتَّقَوْا۟ لَفَتَحْنَا عَلَيْهِم بَرَكَٰتٍۢ مِّنَ ٱلسَّمَآءِ وَٱلْأَرْضِ وَلَٰكِن كَذَّبُوا۟ فَأَخَذْنَٰهُم بِمَا كَانُوا۟ يَكْسِبُونَ ﴾
“Yet if the people of those communities had but attained to faith and been conscious of Us, We would indeed have opened up for them blessings out of heaven and earth: but they gave the lie to the truth - and so We took them to task through what they [themselves] had been doing.”
(And if the people of the township) whose people We destroyed (had believed) in the Scripture and messengers (and kept from evil) disbelief, idolatry, indecencies and had further repented, (surely We should have opened for them, blessings from the sky) through rain (and from the earth) through vegetation and fruits. (But they gave the lie) to My messengers and Scriptures, (and so We seized them) by inflicting upon them drought, lack of fruits and punishment (on account of what they used to earn) i.e. because of giving the lie to the prophets and Scriptures.