Miqdam Abu Karima reported,

A man from Sham, one of the companions of the Messenger of Allah ﷺ, reported that the Messenger of Allah ﷺ said, "Whoever leaves behind wealth, it belongs to his heirs, and whoever leaves behind dependents, they are our responsibility." Sometimes he said, "They are the responsibility of Allah and His Messenger. I am the heir of one who has no heir. I pay the blood-money on his behalf and inherit from him. The maternal uncle is the heir of one who has no heir. He pays the blood-money on his behalf and inherits from him."

Ibn Majah 2738

Sahih

حدثنا أبو بكر بن أبي شيبة حدثنا شبابة ح و حدثنا محمد بن الوليد حدثنا محمد بن جعفر قالا حدثنا شعبة حدثني بديل بن ميسرة العقيلي عن علي بن أبي طلحة عن راشد بن سعد عن أبي عامر الهوزني

عن المقدام أبي كريمة

رجل من أهل الشام من أصحاب رسول الله ﷺ قال قال رسول الله ﷺ من ترك مالا فلورثته ومن ترك كلا فإلينا وربما قال فإلى الله وإلى رسوله وأنا وارث من لا وارث له أعقل عنه وأرثه والخال وارث من لا وارث له يعقل عنه ويرثه

ابن ماجه 2738صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Obligatory duties
Chapter
Blood relatives
Numbering
Darussalam 2738
Ibn Majah 2738