Abu Qatada reported,

The Prophet ﷺ was brought the funeral of a man to perform the prayer over him. The Prophet ﷺ said, "Pray over your companion, for he has a debt upon him."Abu Qatada said, "It is upon me."The Messenger of Allah ﷺ asked, "In full?"He replied, "In full."So he prayed over him.In another narration, the debt was eighteen or nineteen dirhams.

Azami 3746

Sahih

عن أبي قتادة

أن النبي ﷺ أتى بجنازة رجل ليصلي عليها فقال النبي ﷺ: صلوا على صاحبكم، فإن عليه دينا. قال أبو قتادة: هو علي. فقال رسول الله ﷺ: بالوفاء؟ قال: بالوفاء، فصلى عليه. وفي رواية كان عليه ثمانية عشر، أو تسعة عشر در هما.

الأعظمي 3746صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Funerals
Chapter
Prayer over the deceased
Section
Imam should not pray over one who has debt until it is paid off on his behalf
Numbering
Jami al-Kamil 3746 (2nd edition)
Azami 3746