The Messenger of Allah ﷺ said, "I am closer to the believers than they are to themselves. Whoever dies leaving wealth, his wealth goes to his paternal heirs, and whoever leaves behind dependents or those in need, I am their guardian, so let them be referred to me."
قال رسول الله ﷺ: أنا أولى بالمؤمنين من أنفسهم، فمن مات وترك مالا فماله لموالي العصبة، ومن ترك كلا أو ضياعا فأنا وليه فلأدعى له.