Sahih Muslim | Book 42 | Chapter 7

Narrated by Ibn Abbas
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.

Narrated by Jundub
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.

Narrated by Sufyan
Sufyan reported this hadith with the same chain of transmitters and he made this addition: "I did not hear anyone saying besides him that it was Allah's Messenger (may peace be upon him) who had said so.

Narrated by Salama b. Kuhail
Salama b. Kuhail reported: I heard from Jundub but I did not hear him say like this: "I heard Allah's Messenger (way peace be upon him) as saying this.
Narrated by Abu Sufyan
Abu Sufyan reported like that as as-Saduq al-Amin al-Walid b. Harb narrated with the same chain of transmitters.