Sahih al-Bukhari 4781
Narrated Abu Huraira:
The Prophet (ﷺ) said, "There is no believer but I, of all the people, I am the closest to him both in this 
world and in the Hereafter. Recite if you wish: 'The Prophet (ﷺ) is closer to the believers than their own 
selves.' (33.6) so if a believer (dies) leaves some property then his relatives will inherit that property; 
but if he is in debt or he leaves poor children, let those (creditors and children) come to me (that I may 
pay the debt and provide for the children), for them I am his sponsor (surely).
حَدَّثَنِي إِبْرَاهِيمُ بْنُ الْمُنْذِرِ، حَدَّثَنَا مُحَمَّدُ بْنُ فُلَيْحٍ، حَدَّثَنَا أَبِي، عَنْ هِلاَلِ بْنِ عَلِيٍّ، عَنْ عَبْدِ الرَّحْمَنِ بْنِ أَبِي عَمْرَةَ، عَنْ أَبِي هُرَيْرَةَ ـ رضى الله عنه ـ عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ ‏"‏ مَا مِنْ مُؤْمِنٍ إِلاَّ وَأَنَا أَوْلَى النَّاسِ بِهِ فِي الدُّنْيَا وَالآخِرَةِ، اقْرَءُوا إِنْ شِئْتُمْ ‏{‏النَّبِيُّ أَوْلَى بِالْمُؤْمِنِينَ مِنْ أَنْفُسِهِمْ‏}‏ فَأَيُّمَا مُؤْمِنٍ تَرَكَ مَالاً فَلْيَرِثْهُ عَصَبَتُهُ مَنْ كَانُوا، فَإِنْ تَرَكَ دَيْنًا أَوْ ضِيَاعًا فَلْيَأْتِنِي وَأَنَا مَوْلاَهُ ‏"‏‏.‏