Sayyiduna Ibn Abbas (may Allah be pleased with them both) narrated that the Messenger of Allah (peace and blessings be upon him) said: "Whoever shows off, Allah will expose his showing off, and whoever does deeds for fame, Allah will make him known (for it)."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 12319