Sahih al-Bukhari Book 69, Hadith 20
Hind (bint `Utba) said, "O Allah's Messenger (ﷺ)! Abu Sufyan is a miser. Is there any harm if I take of his
property what will cover me and my children's needs?" The Prophet (ﷺ) said, "Take (according to your
needs) in a reasonable manner."
I said, "O Allah's Messenger (ﷺ)! Shall I get a reward (in the Hereafter) if I spend on the children of Abu Salama and do not leave them like this and like this (i.e., poor) but treat them like my children?" The Prophet said, "Yes, you will be rewarded for that which you will spend on them."
A dead man in debt used to be brought to Allah's Messenger (ﷺ) who would ask, "Has he left anything to re pay his debts?" If he was informed that he had left something to cover his debts the Prophet (ﷺ) would offer the funeral prayer for him; otherwise he would say to the Muslims present there), "Offer the funeral prayer for your friend:"but when Allah helped the Prophet (ﷺ) to gain victory (on his expeditions), he said, "I am closer to the Believers than themselves, so. if one of the Believers dies in debt, I will repay it, but if he leaves wealth, it will be for his heirs.