Book 3: If the debts due on a dead person are transferred to somebody, the transference is legal
Sahih al-Bukhari
Sahih al-Bukhari 2289
Makki bin Ibrahim narrated to us that Yazid bin Abi Ubaid told us. He narrated from Hazrat Salamah bin Akwa' (ra) that he said: We were sitting with the Prophet (saw) when a bier was brought and the people said: Lead the funeral prayer for him. He (saw) asked: “Is there any debt on him?” They said: No. Then he (saw) asked: “Has he left anything?” The people said: No. He (saw) led his funeral prayer. Then after that another bier was brought and the people said: O Messenger of Allah (saw), lead his funeral prayer. He (saw) asked: “Is there any debt on him?” It was said: Yes. He (saw) asked: “Has he left anything?” The people said: Three gold coins. He (saw) led his funeral prayer. After that a third bier was brought and the people said: Lead his funeral prayer. He (saw) asked: “Has he left anything?” The people said: No. He (saw) asked: “Is there any debt on him?” The people said: Three gold coins. He (saw) said: “You yourselves lead the funeral prayer of your companion.” Hazrat Abu Qatadah (ra) said: O Messenger of Allah (saw), lead his funeral prayer and the payment of his debt will be my responsibility. Then he (saw) led his funeral prayer.
AI-translated by Islam-Today