The Messenger of Allah ﷺ said, "I am closer to the believers than anyone else, according to the Book of Allah. So whichever of you leaves behind a debt or dependents in need, call upon me, for I am his guardian. And whichever of you leaves behind wealth, let his male relatives inherit it, whoever they may be."
وقال رسول الله ﷺ أنا أولى الناس بالمؤمنين في كتاب الله فأيكم ما ترك دينا أو ضيعة فادعوني فأنا وليه وأيكم ما ترك مالا فليرث ماله عصبته من كان
This is a sahih hadith, narrated by Bukhari in the Book of Debt Transfer, chapter on debt, and in the Book of Inheritance, chapter on the Prophet's ﷺ statement, "Whoever leaves behind wealth, it goes to his family," and in the chapter on a paternal cousin who is also a maternal brother, 8/150. It was also narrated by Muslim in the Book of Inheritance, volume 5, page 62, and in Zad al-Muslim [10/1].Adh-diyaa and adh-diyaah, with fatha on the dad, mean needy, destitute dependents. Khattabi said, the words diyaa and diyaah here describe the deceased's heirs by using an abstract noun, meaning he left behind children or dependents who were in a state of destitution, that is, they had nothing. Diyaa originally is an abstract noun meaning "to be lost," and it was then adopted as a noun for anything exposed to loss or ruin.