It is narrated from Sayyiduna Anas bin Malik (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: "When the Day of Resurrection comes, the deeds will be brought in sealed scrolls. Then Allah, the Blessed and Exalted, will say: 'Accept this and leave this.' The angels will say: 'By Your Might! We wrote only what he did.' Allah Almighty will say: 'You have spoken the truth, but this deed of his was not for My sake, and today I will accept only what was for My sake.'"
Imam al-Tabarani (may Allah have mercy on him) said: "No one narrated this hadith from Abu Imran al-Jawni (may Allah have mercy on him) except al-Harith bin Ghassan."
Hadith Referenceالمعجم الأوسط / باب الميم / 6133
Hadith Gradingمحدثین:رجال أحد إسناديه رجال الصحيح
Hadith Takhrij«قال الهيثمي: رواه الطبراني في الأوسط بإسنادين ورجال أحدهما رجال الصحيح «مجمع الزوائد ومنبع الفوائد، ج 10، ص 350»» «أخرجه الدارقطني فى «سننه» برقم: 132، والبزار فى «مسنده» برقم: 7388، والطبراني فى «الأوسط» برقم: 2603»