It is narrated from Sayyiduna Abdullah bin Amr (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) said: "Whoever does a deed in order to be heard of by people (and gain fame), Allah, the Blessed and Exalted, will make his reality reach the ears of His creation and disgrace him."
Sayyiduna Abdullah bin Amr (may Allah be pleased with them both) narrated this hadith in the presence of Sayyiduna Abdullah bin Umar (may Allah be pleased with them both), that he heard the Messenger of Allah (peace and blessings be upon him) say: "Whoever does a deed in order to be heard of by people, Allah Almighty will publicise him before His creation (on the Day of Resurrection) and humiliate and disgrace him." (The narrator said: On hearing this,) tears flowed from the eyes of Sayyiduna Abdullah bin Umar (may Allah be pleased with them both).
Abu Ya'la al-Mawsili (may Allah have mercy on him) narrated it; Imam al-Tabarani (may Allah have mercy on him) also recorded it in al-Mu'jam al-Kabir with various chains, one of which is sahih (authentic), and Imam al-Bayhaqi (may Allah have mercy on him) also recorded it.
Hadith Referenceإتحاف الخيرة المهرة بزوائد المسانيد العشرة / كتاب العلم / 398
Hadith Gradingمحدثین:إسناده صحيح
Hadith Takhrij«ورواه الطبراني في الكبير بأسانيد أحدها صحيح، والبيهقي» «(398/1) أخرجه مسند أحمد برقم: 6800، وأخرجه شرح السنة برقم: 4138» «(398/2) أخرجه مسند أحمد برقم: 6947، وأخرجه مجمع الزوائد ومنبع الفوائد برقم: 17660»