A dead person was brought to the Prophet (ﷺ) so that he might lead the funeral prayer for…

Sahih al-Bukhari Book 39 Hadith 6

Sahih al-Bukhari #2295

Kafalah 39:6

Narrated Salama bin Al-Akwa`:

A dead person was brought to the Prophet (ﷺ) so that he might lead the funeral prayer for him. He asked, "Is he in debt?" When the people replied in the negative, he led the funeral prayer. Another dead person was brought and he asked, "Is he in debt?" They said, "Yes." He (refused to lead the prayer and) said, "Lead the prayer of your friend." Abu Qatada said, "O Allah's Messenger (ﷺ)! I undertake to pay his debt." Allah's Messenger (ﷺ) then led his funeral prayer.

Chapter: He who undertakes to repay the debts of a dead person

Grade: Sahih