Abu Hurairah reported,

The Messenger of Allah ﷺ said, "I am the closest of people to the believers according to the Book of Allah عز وجل. So whichever of you leaves behind a debt or dependents, call upon me, for I am his guardian. And whichever of you leaves behind wealth, let him pass it on to his heirs, whoever they may be."

Azami 6048

Sahih

عن أبي هريرة قال

قال رسول الله ﷺ: أنا أولى الناس بالمؤمنين في كتاب الله عز وجل، فأيكم ما ترك دينا أو ضيعة فادعوني، فأنا وليه، وأيكم ما ترك مالا فليؤثر بماله عصبته من كان.

الأعظمي 6048صحيح
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 6048 (2nd edition)
Azami 6048