It is narrated from Sayyiduna Abu Hurayrah (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "On the Day of Resurrection the deeds will be presented before Allah. The prayer will come and say: 'O my Lord, I am the prayer.' Allah Almighty will say: 'You are upon good.' Then charity will come and say: 'O my Lord, I am charity.' Allah will say: 'You are upon good.' Then fasting will come and say: 'O my Lord, I am fasting.' Allah will say: 'You are upon good.' Until Islam comes and says: 'O my Lord, You are al-Salam (Peace) and I am Islam.' Then Allah will say: 'You are upon good; today by you I will take to account and by you I will give.' Then Allah Almighty will say: 'Indeed, the religion with Allah is Islam,' and 'Whoever seeks a religion other than Islam, it will never be accepted from him, and in the Hereafter he will be among the losers.'"
Hadith Referenceالمعجم الأوسط / باب الميم / 7611
Hadith Takhrij«أخرجه أحمد فى «مسنده» برقم: 8863، والطيالسي فى «مسنده» برقم: 2594، وأبو يعلى فى «مسنده» برقم: 6231، وابن حجر فى «المطالب العالية» برقم: 2872»