Then Abu Qatadah al-Ansari said: I shall pay them, Messenger of Allah. The Messenger of Allah (ﷺ) then prayed over him.
When Allah granted conquests to the Messenger of Allah (ﷺ), he said: I am nearer to every believer than himself, so if anyone (dies and) leaves a debt, I shall be responsible for paying it; and if anyone leaves property, it goes to his heirs.
In-book : Book 23, Hadith 18
English translation : Book 22, Hadith 3337