Sahih Muslim | Book 42 | Hadith Number 7115

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.