Sahih Bukhari
Sahih Bukhari Volume 003, Book 037, Hadith Number 492.
Hadith Section/Book: Sahih Bukhari Sahih Bukhari Book 37. Transference of a Debt from one Person to Another (Al-Hawaala)
Narated By 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 Apostle! I undertake to pay his debt." Allah's Apostle then led his funeral prayer.