Abu Hurairah (RA) reported Allah's Messenger (ﷺ) as stating that Allah the Most High and Exalted said: I am the 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.
Hadith Referenceصحيح مسلم / كتاب الزهد والرقائق / 2985
Ibn Abbas (RA) 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.
Hadith Referenceصحيح مسلم / كتاب الزهد والرقائق / 2986
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.
Hadith Referenceصحيح مسلم / كتاب الزهد والرقائق / 2987
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."
Hadith Referenceصحيح مسلم / كتاب الزهد والرقائق / 2987