Abu Qatada reported,

A man from the Ansar was brought before the Messenger of Allah ﷺ for him to perform the funeral prayer. The Prophet ﷺ said, "Pray over your companion yourselves, for he has a debt upon him."Abu Qatada said, "I will pay it."The Prophet ﷺ asked, "In full?"He replied, "In full."So he prayed over him.

Nasai 1962

Sahih

أخبرنا محمود بن غيلان قال حدثنا أبو داود قال حدثنا شعبة عن عثمان بن عبد الله بن موهب سمعت

عبد الله بن أبي قتادة يحدث عن أبيه

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

النسائي 1962صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Funerals
Chapter
Prayer for one who has debt
Numbering
Darussalam 1962
Nasai 1962