This is the wording in Sahih Muslim.
[Al-Bukhari and Muslim].
The narration in Al-Bukhari is: Messenger of Allah (ﷺ) said: "When one of you looks at someone who is superior to him in property and appearance, he should look at someone who is inferior to him".
وفي رواية البخاري: "إذا نظر أحدكم إلى من فضل عليه في المال والخلق، فلينظر إلى من هو أسفل منه".
Reference | : Riyad as-Salihin 466 |
In-book reference | : Introduction, Hadith 466 |