Sunan Ibn Majah, Book 37, Hadith 44 (Ibn Majah 4147)

It was narrated that Abu Hurairah, who attributed it to the Prophet (ﷺ), said:

“Allah does not look at your forms or your wealth, rather He looks at your deeds and your hearts.”