Abu Hurairah reported,

The Prophet ﷺ said, "There is no believer except that I am closer to him than himself 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. And whoever leaves behind a debt or dependents in need, let him come to me, for I am his guardian."

Bukhari 2399

Sahih

حدثنا عبد الله بن محمد حدثنا أبو عامر حدثنا فليح عن هلال بن علي عن عبد الرحمن بن أبي عمرة

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

أن النبي ﷺ قال ما من مؤمن إلا وأنا أولى به في الدنيا والآخرة اقرءوا إن شئتم {النبي أولى بالمؤمنين من أنفسهم} فأيما مؤمن مات وترك مالا فليرثه عصبته من كانوا ومن ترك دينا أو ضياعا فليأتني فأنا مولاه

البخاري 2399صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Borrowing
Chapter
Prayer for the one who left behind a debt
Numbering
Darussalam 2399
Bukhari 2399