Isa bin Sadaqah said: I, my father and the imam of our neighbourhood went to Sayyiduna Anas bin Malik (may Allah be pleased with him) and said: Narrate to us a hadith that you heard from the Messenger of Allah (peace and blessings be upon him); may Allah make it a source of benefit for us. Sayyiduna Anas (may Allah be pleased with him) said: A man died, and the Messenger of Allah (peace and blessings be upon him) came. We said: O Messenger of Allah, will you lead the funeral prayer over him? He (peace and blessings be upon him) said: "Is he in any debt?" We said: Yes. He (peace and blessings be upon him) said: "Will any of you stand guarantor for it, so that I may lead the funeral prayer?" They answered no. He (peace and blessings be upon him) said: "Then it will not benefit you that I lead the funeral prayer over a man who is held in pledge in his grave until Allah raises him on the Day of Resurrection and he is brought to account."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الضمان / 11406