Abd al-Hamid bin Abi Umayyah (may Allah have mercy on him) narrates: We were with Sayyiduna Anas bin Malik (may Allah be pleased with him), and he said: I heard the Messenger of Allah (peace and blessings be upon him) say, when a man had been brought to him for him to lead the funeral prayer over him, he (peace and blessings be upon him) asked: "Does your companion owe any debt?" The Companions replied: "Yes." So he (peace and blessings be upon him) said: "If I pray over a man whose soul is held in pledge in his grave and does not rise to the heaven, what benefit will that be to you? But if someone takes responsibility for his debt, I will stand and pray over him, for my prayer will benefit him."
Imam al-Tabarani (may Allah have mercy on him) said: "This hadith is narrated from Sayyiduna Anas (may Allah be pleased with him) only with this chain; Isa bin Sadaqah is alone in narrating it."
This is how it appears in the Dar al-Haramain edition, whereas the correct form is "Abd al-Hamid bin Umayyah".
Hadith Referenceالمعجم الأوسط / باب الميم / 5253
Hadith Gradingمحدثین:إسناده ضعيف لضعف عبد الحميد بن أمية
Hadith Takhrij«قال الهيثمي: فيه عبد الحميد بن أمية وهو ضعيف «مجمع الزوائد ومنبع الفوائد، ج 3، ص 40»» «أخرجه الضياء المقدسي فى «الأحاديث المختارة» برقم: 2219، والبيهقي فى «السنن الكبرى» برقم: 11525، 11524، 11526، وأبو يعلى فى «مسنده» برقم: 3477، 4244، وابن حجر فى «المطالب العالية» برقم: 1446، 1447، 1448»