Abdullah bin Abbas reported,

Regarding the verse "And among the people is he who worships Allah on an edge" [Hajj 22:11], Ibn Abbas said, "A man would arrive in Madinah, and if his wife bore him a son and his mares produced foals, he would say, 'This is a good religion.' But if his wife did not bear a child and his mares did not produce foals, he would say, 'This is a bad religion.'"

Azami 12774

Sahih

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

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

الأعظمي 12774صحيح
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 12774 (2nd edition)
Azami 12774