Abu Hurairah reported,

The Prophet ﷺ said, "There is no believer except that I am closer to him than anyone else in this world and the next. Recite if you wish, 'The Prophet is closer to the believers than their own selves' [Ahzab 33:6]. So whichever believer dies leaving wealth, let his paternal relatives inherit it, whoever they may be. But whoever leaves behind a debt or dependents, let him come to me, for I am his guardian."

Azami 6045

Sahih

عن أبي هريرة

أن النبي ﷺ قال: ما من مؤمن إلا وأنا أولى به في الدنيا والآخرة، اقرؤوا إن شئتم: {النبي أولى بالمؤمنين من أنفسهم} [سورة الأحزاب: ٦] فأيما مؤمن مات وترك مالا فليرثه عصبته من كانوا، ومن ترك دينا أو ضياعا فليأتني فأنا مولاه.

الأعظمي 6045صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Obligatory duties
Section
He who leaves wealth, it is for his heirs
Numbering
Jami al-Kamil 6045 (2nd edition)
Azami 6045