Sahih Muslim · Hadith 7667
The Book Pertaining to Piety and Softening of Hearts - كتاب الزهد والرقائق
حدثنا عمر بن حفص بن غياث، حدثني أبي، عن إسماعيل بن سميع، عن مسلم، البطين عن سعيد بن جبير، عن ابن عباس، قال قال رسول الله صلى الله عليه وسلم " من سمع سمع الله به ومن راءى راءى الله به " .
Ibn Abbas reported Allah's Messenger (may peace be upon him) as saying: If anyone wants to have his deeds widely publicised, Allah will publicise (his humiliation). And if anyone 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).