The Messenger of Allah ﷺ said, "Look at those below you and do not look at those above you, for that makes it more likely that you will not belittle the blessings Allah has given you."
حدثنا وكيع قال حدثني الأعمش عن أبي صالح
قال رسول الله ﷺ انظروا إلى من أسفل منكم ولا تنظروا إلى من هو فوقكم فإنه أجدر أن لا تزدروا نعمة الله عليكم
Its isnad is sahih. Muslim narrated it, 4/2275, no. 2963, at the beginning of the Book of Zuhd, Tirmidhi narrated it, no. 2513, in the Book of Clothing, chapter on patching garments, close to it in wording, and Ibn Majah narrated it, no. 4142, in the Book of Zuhd, chapter on contentment, with its exact wording.