Jundub reported: The Messenger of Allah, peace and blessings be upon him, said, “Whoever acts to be heard, Allah will make him heard. Whoever acts to show off, Allah will show him off.
Source: Ṣaḥīḥ al-Bukhārī 6499, Ṣaḥīḥ Muslim 2987
Grade: Muttafaqun Alayhi (authenticity agreed upon) according to Al-Bukhari and Muslim
Al-Nawawi said, “The scholars said it means whoever is ostentatious in his deeds and he publicizes it to people so that they honor him, aggrandize him, and believe he is virtuous, Allah will publicize it to people on the Day of Resurrection and disgrace him.”
Source: Sharḥ al-Nawawī ‘alá Ṣaḥīḥ Muslim 18/116
عَنْ جُنْدُب قَالَ قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ مَنْ يُسَمِّعْ يُسَمِّعْ اللَّهُ بِهِ وَمَنْ يُرَائِي يُرَائِي اللَّهُ بِهِ
6499 صحيح البخاري كتاب الرقاق باب الرياء والسمعة
2987 صحيح مسلم كتاب الزهد والرقائق باب من أشرك في عمله غير الله
قال النووي قَالَ الْعُلَمَاءُ مَعْنَاهُ مَنْ رَايَا بِعَمَلِهِ وَسَمَّعَهُ النَّاسَ لِيُكْرِمُوهُ وَيُعَظِّمُوهُ وَيَعْتَقِدُوا خَيْرَهُ سَمَّعَ اللَّهُ بِهِ يَوْمَ الْقِيَامَةِ النَّاسَ وَفَضَحَهُ
18/116 شرح النووي على مسلم