What is inside one's heart is what matters
The Messenger of Allah ﷺ said, and he mentioned something similar to the hadith of Dawud, adding and omitting. Among what he added in it was: “Indeed, Allah does not look at your bodies nor at your forms, but rather He looks at your hearts,” and he gestured with his fingers toward his chest.
قَالَ رَسُولُ اللَّهِ ﷺ فَذَكَرَ نَحْوَ حَدِيثِ دَاوُدَ وَزَادَ وَنَقَصَ وَمِمَّا زَادَ فِيهِ «إِنَّ اللَّهَ لاَ يَنْظُرُ إِلَى أَجْسَادِكُمْ وَلاَ إِلَى صُوَرِكُمْ وَلَكِنْ يَنْظُرُ إِلَى قُلُوبِكُمْ»، وَأَشَارَ بِأَصَابِعِهِ إِلَى صَدْرِهِ۔