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. (Using translation from Abū Dāʾūd 2954)
قَالَ رَسُولُ اللهِ ﷺ «أَنَا أَوْلَى بِالْمُؤْمِنِينَ مِنْ أَنْفُسِهِمْ فَمَنْ تَرَكَ مَالًا فَهُوَ إِلَى الْعَصَبَةِ وَمَنْ تَرَكَ كَلًّا أَوْ ضَيَاعًا فَأَنَا وَلِيُّهُ»