I heard the Messenger of Allah ﷺ say, "There are two qualities such that whoever has them both, Allah records him as grateful and patient, and whoever lacks them, Allah records him as neither grateful nor patient. Whoever looks in matters of his religion to one who is above him and follows his example, and looks in matters of this world to one who is below him and praises Allah for the favor He has shown him over that person, Allah records him as grateful and patient. But whoever looks in matters of his religion to one who is below him, and looks in matters of this world to one who is above him and grieves over what he has missed of it, Allah records him as neither grateful nor patient."Musa bin Hizam, the righteous man, reported to us, from Ali bin Ishaq, from Abdullah bin Mubarak, from Muthanna bin Sabbah, from Amr bin Shuayb, from his father, from his grandfather, from the Prophet ﷺ, a similar report.He said, this is a fine but unusual hadith, and Suwayd bin Nasr did not mention "from his father" in his version.
حدثنا سويد بن نصر أخبرنا ابن المبارك عن المثنى بن الصباح عن عمرو بن شعيب
سمعت رسول الله ﷺ يقول خصلتان من كانتا فيه كتبه الله شاكرا صابرا ومن لم تكونا فيه لم يكتبه الله شاكرا ولا صابرا من نظر في دينه إلى من هو فوقه فاقتدى به ومن نظر في دنياه إلى من هو دونه فحمد الله على ما فضله به عليه كتبه الله شاكرا صابرا ومن نظر في دينه إلى من هو دونه ونظر في دنياه إلى من هو فوقه فأسف على ما فاته منه لم يكتبه الله شاكرا ولا صابرا أخبرنا موسى بن حزام الرجل الصالح حدثنا علي بن إسحق أخبرنا عبد الله بن المبارك أخبرنا المثنى بن الصباح عن عمرو بن شعيب عن أبيه عن جده عن النبي ﷺ نحوه قال هذا حديث حسن غريب ولم يذكر سويد بن نصر في حديثه عن أبيه
[Its chain of transmission is daif] Ibn Sunni also reported it, no. 309, through Muthanna bin Sabbah, who is daif, his memory became confused toward the end of his life, though he was devout (Taqrib). It is also found in Zuhd of Ibn Mubarak, additions of Nuaym bin Hammad, no. 180.