Sayyiduna Salamah bin Akwa’ (may Allah be pleased with him) narrates: I was with the Prophet Muhammad (peace and blessings be upon him) when a funeral was brought. The people said: O Messenger of Allah (peace be upon him)! Please perform the funeral prayer for him. The Prophet (peace be upon him) asked: Did he leave behind any debt? They replied: No. The Prophet (peace be upon him) asked: Did he leave behind anything? They replied: Three dinars. The Prophet (peace be upon him) said: Three things with which he will be branded. Another funeral was brought and the people said: O Messenger of Allah (peace be upon him), please perform the funeral prayer for him. The Prophet (peace be upon him) asked: Did he leave behind any debt? They replied: Yes. The Prophet (peace be upon him) asked: Did he leave behind anything? The people replied: No. One of the Ansar, whose name was Sayyiduna Abu Qatadah (may Allah be pleased with him), said: O Messenger of Allah (peace be upon him)! The repayment of his debt is my responsibility. The narrator says: So the Prophet (peace be upon him) performed his funeral prayer.
Hadith Referenceصحیح ابن حبان / كتاب الزكاة / 3264
Hadith Gradingفضيلة الشيخ الإمام محمد ناصر الدين الألبانيصحيح - «التعليق الرغيب» (2/ 44).فضيلة الشيخ العلّامة شُعيب الأرناؤوطإسناده صحيح على شرط البخاري