It is narrated from Sayyiduna Salamah bin al-Akwa' (may Allah be pleased with him) that he said: I was with him (peace and blessings be upon him). A funeral was brought to the Messenger of Allah (peace and blessings be upon him). The Companions said: O Messenger of Allah, lead the funeral prayer over him. He (peace and blessings be upon him) asked: "He is not in debt, is he?" They said: No. He (peace and blessings be upon him) asked: "Has he left anything behind?" They said: No. So he (peace and blessings be upon him) led the funeral prayer over him. Then another funeral was brought. The Companions said: O Prophet of Allah, lead the funeral prayer over him. He (peace and blessings be upon him) asked: "Is he in debt?" They said: No. He (peace and blessings be upon him) asked: "Has he left anything behind?" They said: Three dinars. He (peace and blessings be upon him) said: "(These are) three brandings (with fire)." Then the funeral of a third man was brought. They said: O Messenger of Allah, lead the funeral prayer over him. He (peace and blessings be upon him) asked: "Is he in debt?" They said: Yes. He (peace and blessings be upon him) asked: "Has he left anything behind?" They said: No. He (peace and blessings be upon him) said: "Offer the funeral prayer over your brother." A man from the Ansar who was called Abu Qatadah (may Allah be pleased with him) said: Lead the prayer over him, and his debt is upon me. Then he (peace and blessings be upon him) led the funeral prayer over him.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الحوالة / 11396