The Prophet was brought a (deceased) man to perform Salat over. So the Prophet said: "Pray for your companion; for indeed he had a debt upon him." Abu Qatadah said: "It shall be upon me." So the Messenger of Allah said: "To pay it off?" (He said: "To pay it off.") So he performed the prayer for him.
أَنَّ النَّبِيَّ ﷺ أُتِيَ بِرَجُلٍ لِيُصَلِّيَ عَلَيْهِ فَقَالَ النَّبِيُّ ﷺ صَلُّوا عَلَى صَاحِبِكُمْ فَإِنَّ عَلَيْهِ دَيْنًا قَالَ أَبُو قَتَادَةَ هُوَ عَلَىَّ فَقَالَ رَسُولُ اللَّهِ ﷺ بِالْوَفَاءِ قَالَ بِالْوَفَاءِ فَصَلَّى عَلَيْهِ قَالَ وَفِي الْبَابِ عَنْ جَابِرٍ وَسَلَمَةَ بْنِ الأَكْوَعِ وَأَسْمَاءَ بِنْتِ يَزِيدَ