Sahih Bukhari | Volume 8 | Hadith Number 497

Narrated by 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."