كتاب الزهد والرقائق
55  
The Book of Zuhd and Softening of Hearts
(5)
Chapter: The Prohibition On Showing Off
(5)
باب مَنْ أَشْرَكَ فِي عَمَلِهِ غَيْرَ اللَّهِ
Sahih Muslim 2987 a

Jundub reported Allah's Messenger (ﷺ) as saying:

He who wants to publicise (his deeds), Allah will publicise (his humility), and he who makes a hypocritical display (of his deeds), Allah will make a display of him.
حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، حَدَّثَنَا وَكِيعٌ، عَنْ سُفْيَانَ، عَنْ سَلَمَةَ بْنِ كُهَيْلٍ، قَالَ سَمِعْتُ جُنْدُبًا الْعَلَقِيَّ، قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏ "‏ مَنْ يُسَمِّعْ يُسَمِّعِ اللَّهُ بِهِ وَمَنْ يُرَائِي يُرَائِي اللَّهُ بِهِ ‏"‏ ‏.‏
Reference : Sahih Muslim 2987a
In-book reference : Book 55, Hadith 60
USC-MSA web (English) reference : Book 42, Hadith 7116
  (deprecated numbering scheme)