Jabir bin Abdullah reported,

The Prophet ﷺ would not perform the funeral prayer over a man who had unpaid debt. A deceased man was brought to him, and he asked, "Does he owe any debt?"They said, "Yes, two dinars."He said, "Pray over your companion."Abu Qatada said, "They are upon me to pay, Messenger of Allah."So he prayed over him. Then, when Allah عز وجل granted victories to His Messenger ﷺ, he said, "I am closer to every believer than his own self. Whoever leaves behind a debt, it is upon me to settle, and whoever leaves behind wealth, it belongs to his heirs."

Ahmad 14159

Sahih

حدثنا عبد الرزاق حدثنا معمر عن الزهري عن أبي سلمة بن عبد الرحمن

عن جابر بن عبد الله قال

كان النبي ﷺ لا يصلي على رجل عليه دين فأتي بميت فسأل هل عليه دين قالوا نعم ديناران قال صلوا على صاحبكم فقال أبو قتادة هما علي يا رسول الله فصلى عليه فلما فتح الله عز وجل على رسوله ﷺ قال أنا أولى بكل مؤمن من نفسه فمن ترك دينا فعلي ومن ترك مالا فلورثته

أحمد 14159صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Jabir bin Abdullah
Numbering
Darussalam 14159
Ahmad 14159