The Prophet (ﷺ) said: I am nearer to the believers than themselves, so if anyone leaves property, it goes to his heirs, and if anyone leaves debt and dependants, let the matter come to me and I shall be responsible.
Sunan Abi Dawud Book 20, Hadith 27