Abu Huraira reported Allah's Messenger (ﷺ) as stating that Allah the Most High and Exalted said
I am the One, One Who does not stand in need of a partner. If anyone does anything in which he associates anyone else with Me, I shall abandon him with one whom he associates with Allah.
Ibn Abbas reported Allah's Messenger (ﷺ) 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.
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.
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 (ﷺ) who had said so."
Salama b. Kuhail reported
I heard from Jundub, but I did not hear him say this: "I heard Allah's Messenger (ﷺ) saying this."
Abu Sufyan reported like that as as-Saduq al-Amin al-Walid b. Harb narrated with the same chain of transmitters.