TABARANI 17823:
from al-Miqdām b. Maʿdī Karib —
[Machine] The Messenger of Allah ﷺ said, "Whoever leaves behind no heir, his wealth belongs to Allah and His Messenger, or he said, to us. And whoever leaves behind wealth, it belongs to his heirs, and I am the heir of the one who has no heir. The uncle is the guardian of the one who has no guardian, he inherits his wealth and frees his neck."
الطبراني ١٧٨٢٣:
عن المقدام بن معدي كرب —
قَالَ رَسُولُ اللهِ ﷺ مَنْ تَرَكَ كَلَّا فَإِلَى اللهِ وَإِلَى رَسُولِهِ أَوْ قَالَ فَإِلَيْنَا وَمَنْ تَرَكَ مَالًا فَلِوَرَثَتِهِ وَأَنَا وَارِثَ مَنْ لَا وَارِثَ لَهُ أَرِثُ مَالَهُ وَأَفُكُّ عَانَهُ وَالْخَالُ مَوْلَى مَنْ لَا مَوْلَى لَهُ يَرِثُ مَالَهُ وَيَفُكُّ عَانَهُ
hadithunlocked.com