Abdullah bin Abbas reported,

Some Bedouins used to come to the Prophet ﷺ and accept Islam. When they returned to their lands, if they found a year of rain, a year of abundance, and a year of healthy births, they would say, "This religion of ours is good," and they would hold fast to it. But if they found a year of drought, a year of poor births, and a year of famine, they would say, "There is no good in this religion of ours."So Allah revealed, "And among the people is he who worships Allah on an edge" [Hajj 22:11].

Azami 12775

Hasan

عن ابن عباس، قال

كان ناس من الأعراب يأتون النبي ﷺ، فيسلمون، فإذا رجعوا إلى بلادهم، فإن وجدوا عام غيث وعام خصب وعام ولاد حسن، قالوا: إن ديننا هذا صالح، فتمسكوا به، وإن وجدوا عام جدوبة وعام ولاد سوء وعام قحط، قالوا: ما في ديننا هذا خير، فأنزل الله {ومن الناس من يعبد الله على حرف}.

الأعظمي 12775حسن
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Tafsir of the great Quran
Chapter
Tafsir of Surah Anbiya
Section
His saying, "And among people is he who worships Allah on the edge. If good befalls him, he is content with it, but if a trial befalls him, he turns back on his face. He has lost this world and the Hereafter. That is the clear loss."
Numbering
Jami al-Kamil 12775 (2nd edition)
Azami 12775