Al-Hasan says: Sayyiduna Abu Hurayrah (may Allah be pleased with him) narrated a hadith to us when he and we were in Madinah. He said: The Prophet (peace and blessings be upon him) said: "On the Day of Resurrection the deeds will come. The prayer will come and say: 'O my Lord, I am the prayer.' The Lord will say: 'You are upon good.' Charity will come and say: 'O my Lord, I am charity.' The Lord will say: 'You are upon good.' Then fasting will come and say: 'O my Lord, I am fasting.' The Lord will say: 'You are upon good.' In the same way various deeds will keep coming, and Allah Almighty will keep saying: 'You are upon good.' Then Islam will come and say: 'O Lord, You are the Giver of peace (al-Salam), and I am Islam.' Allah Almighty will say: 'Indeed, you are upon good. Because of you I will take to account today, and because of you I will give today.'" Allah Almighty has said in His Book: "Whoever seeks a religion other than Islam, it will not be accepted from him, and in the Hereafter he will be among the losers."
Ahmad and Abu Ya'la recorded this narration, and Tabarani recorded it in al-Mu'jam al-Awsat with these additional words: Allah Almighty says: "Indeed, the religion with Allah is Islam." (In another place Allah Almighty has said:) "And whoever seeks a religion other than Islam, it will not be accepted from him, and in the Hereafter he will be among the losers." The chain of this narration contains Abbad bin Rashid, whom Abu Hatim and others declared thiqah (trustworthy), while a group declared him da'if (weak); the remaining narrators of Ahmad are the narrators of the Sahih.
Hadith Referenceمجمع الزوائد ومنبع الفوائد / كتاب البعث / 18367
Hadith Gradingمحدثین:إسنادہ حسن
Hadith Takhrij«اخرجه ابو يعلى فى المسند (6231) اخرجه احمد فى المسند (362/2) ، أخرجه مسند أحمد برقم: 8525»