The Book of Virtue, Enjoining Good Manners, and Joining of the Ties of Kinship
Ṣaḥīḥ Muslim 6542
إِنَّ اللَّهَ لاَ يَنْظُرُ إِلَى أَجْسَادِكُمْ وَلاَ إِلَى صُوَرِكُمْ وَلَكِنْ يَنْظُرُ إِلَى قُلُوبِكُمْ
inna-Llāh lā yanẓuru ilā ajsādikum walā ilā ṣuwarikum walakin yanẓuru ilā qulūbikum
Transliteration generated from the Arabic vowel marks
The full narration
This hadith has been transmitted on the authority of Abu Huraira with some addition (and it is this):" Verily Allah does not look to your bodies nor to your faces but He looks to your hearts," and he pointed towards the heart with his fingers
Source
Ṣaḥīḥ Muslim · 6542
Ṣaḥīḥ