Sahih Muslim · Hadith 7668
The Book Pertaining to Piety and Softening of Hearts - كتاب الزهد والرقائق
حدثنا أبو بكر بن أبي شيبة، حدثنا وكيع، عن سفيان، عن سلمة بن كهيل، قال سمعت جندبا العلقي، قال قال رسول الله صلى الله عليه وسلم " من يسمع يسمع الله به ومن يرائي يرائي الله به " .
Jundub reported Allah's Messenger (may peace be upon him) 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.
Gradings are classical jarḥ-wa-taʿdīl, name-matched to a rijāl index (not individually re-verified).