Abdullah bin Abu Qatadah narrates from his father: A funeral was brought before the Prophet (peace be upon him) so that the funeral prayer could be performed. The Prophet (peace be upon him) inquired: "Does he have any debt?" The people replied: "Yes, two dinars." The Prophet (peace be upon him) asked: "Did he leave anything for its repayment?" The people replied: "No." So the Prophet (peace be upon him) said: "You perform the funeral prayer of your companion." Abu Qatadah (may Allah be pleased with him) submitted: "O Messenger of Allah (peace be upon him)! The repayment of both is upon me." Then the Prophet (peace be upon him) performed his funeral prayer.
Hadith Referenceصحیح ابن حبان / كتاب الجنائز وما يتعلق بها مقدما أو مؤخرا / 3058
Hadith Gradingفضيلة الشيخ الإمام محمد ناصر الدين الألبانيحسن صحيح - «أحكام الجنائز» (ص 111).فضيلة الشيخ العلّامة شُعيب الأرناؤوطإسناده حسن من أجل محمد بن عمرو وهو ابن علقمة الليثي فإن حديثه لا يرتقي إلى الصحة