The Prophet ﷺ said, "Allah does not look at your outward forms or your wealth, but He looks at your hearts and your deeds."
حدثنا كثير حدثنا جعفر حدثنا يزيد بن الأصم
أن النبي ﷺ قال إن الله عز وجل لا ينظر إلى صوركم وأموالكم ولكن إنما ينظر إلى قلوبكم وأعمالكم
Its isnad is sahih. Muslim narrated it in the Book of Righteousness, chapter on the prohibition of wronging a Muslim, 4/1987, no. 2564, and Ibn Majah, 2/1388, no. 4143, in the Book of Asceticism, chapter on contentment.