Abu Hurairah reported,

A funeral bier was brought to the Prophet ﷺ, and he stood up to pray over it.The people said, "He owes a debt."The Messenger of Allah ﷺ said, "Take your companion away and pray over him yourselves."A man said, "His debt is on me, so pray over him."So the Messenger of Allah ﷺ stood and prayed over him.

Azami 3749

Hasan

عن أبي هريرة

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

الأعظمي 3749حسن
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 3749 (2nd edition)
Azami 3749