Messenger of Allah ﷺ 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. (Using translation from Bukhārī 6490)
"إذَا نَظَر أحدُكُمْ إلى مَنْ فُضِّل عليه في المالِ والخَلق فلينظُرْ إلَى مَنْ هو أسفلَ مِنْه".