It is narrated from Sayyiduna Anas bin Malik (may Allah be pleased with him) that: "(The bier of) a man was brought to the Prophet (peace and blessings be upon him) so that he might lead his funeral prayer. He (peace and blessings be upon him) asked: Does he owe any debt? The people said: Yes. He (peace and blessings be upon him) said: If you guarantee his debt, I will lead his funeral prayer."
Imam Abu Bakr bin Abi Shaybah recorded this hadith with a da'if (weak) chain, because its narrator Sadaqah bin Isa, or Isa bin Sadaqah, is weak. The wording of Imam Abu Ya'la's narration is that Isa bin Sadaqah says: I went with my father to Sayyiduna Anas bin Malik (may Allah be pleased with him), and we said to him: Narrate to us a hadith by which Allah Almighty will benefit us. I heard him say: "Whoever of you is able to die in a state in which he owes no one any debt, let him do so; for I saw the Prophet of Allah (peace and blessings be upon him) when the funeral of a man who owed a debt was brought to him (peace and blessings be upon him), and he (peace and blessings be upon him) said: 'I will not lead his funeral prayer until you guarantee his debt, for my praying over him benefits him.' So when the people did not guarantee his debt, he (peace and blessings be upon him) did not lead his funeral prayer, and he said that he is held in pledge in his grave (that is, detained because of his debt)." This hadith will come later in the chapter on loans.