Narrated Abu Huraira:
Allah’s Apostle said, “If anyone of you looked at a person who was made superior to him in property and (in good) appearance, then he should also look at the one who is inferior to him, and to whom he has been made superior.”
Sahih Bukhari, Volume 8, Book76, Number 497