It is narrated from Hazrat Abu Bakrah (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: Whoever does any deed for fame, Allah will hand him over to fame, and whoever does any deed for show, Allah will hand him over to show.
Hadith Referenceمسند احمد / أول مسند البصريين / 20456
Hadith Gradingحکم دارالسلام:صحيح لغيره، وهذا إسناد ضعيف لضعف بكار بن عبدالعزيز