كتاب البر والصلة والآداب
45
The Book of Virtue, Enjoining Good Manners, and Joining of the Ties of Kinship
(10)
Chapter: The Prohibition Of Wronging, Forsaking, Or Despising A Muslim And The Inviolability Of His Blood, Honor And Wealth
(10)
باب تَحْرِيمِ ظُلْمِ الْمُسْلِمِ وَخَذْلِهِ وَاحْتِقَارِهِ وَدَمِهِ وَعِرْضِهِ وَمَالِهِ ‏‏

Abu Huraira reported Allah's Messenger (ﷺ) as saying:

Verily Allah does not look to your faces and your wealth but He looks to your heart and to your deeds.
حَدَّثَنَا عَمْرٌو النَّاقِدُ، حَدَّثَنَا كَثِيرُ بْنُ هِشَامٍ، حَدَّثَنَا جَعْفَرُ بْنُ بُرْقَانَ، عَنْ يَزِيدَ بْنِ، الأَصَمِّ عَنْ أَبِي هُرَيْرَةَ، قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏ "‏ إِنَّ اللَّهَ لاَ يَنْظُرُ إِلَى صُوَرِكُمْ وَأَمْوَالِكُمْ وَلَكِنْ يَنْظُرُ إِلَى قُلُوبِكُمْ وَأَعْمَالِكُمْ ‏"‏ ‏.‏
Reference : Sahih Muslim 2564 c
In-book reference : Book 45, Hadith 42
USC-MSA web (English) reference : Book 32, Hadith 6221
  (deprecated numbering scheme)