Sayyiduna Abu Hurairah (RadhiAllaho anho) reported:
Messenger of Allah (Sallallahu Alaihi Wasallam) said,
"Look at those who are inferior to you and do not look at those who are superior to you, for this will keep you from belittling ALLAH, Subhanahu wa ta'ala's Favour to you.''
[Al-Bukhari and Muslim].
This is the wording in Sahih Muslim. The narration in Al-Bukhari is:
Messenger of Allah (Sallallahu Alaihi Wasallam) said:
"When one of you looks at someone who is superior to him in property and ppearance,
he should look at someone who is inferior to him".