The Messenger of Allah ﷺ said, "Allah does not look at your appearances or your wealth, but He looks at your hearts and your deeds."
قال رسول الله ﷺ: إن الله لا ينظر إلى صوركم وأموالكم، ولكن ينظر إلى قلوبكم وأعمالكم.
Muslim narrated it in the Book of Righteousness and Kinship Ties (2564:34), from Amr bin Naqid, who said, Kathir bin Hisham narrated to us, who said, Jafar bin Barqan narrated to us, from Yazid bin Asam, from Abu Hurairah, and he mentioned it.As for what has circulated on the tongues of a group of scholars and others, "Allah does not look at your forms or your deeds, but He looks at your hearts," this has not reached us through any chain that would establish something like it, and it contradicts what is found in the sahih hadith, as Bayhaqi said in Al-Asma wal-Sifat (2/426).