Sunan Abi Dawud, Hadith 2893

Narrated Al-Miqdam al-Kindi: The Prophet said: If anyone leaves a debt or a helpless family I shall be responsible-and sometimes the narrator said: Allah and His Apostle will be responsible-but if anyone leaves property, it goes to his heirs. I am the heirs of him who has none, paying blood-wit for him and inheriting from him; and a maternal uncle is the heir of him who has none, paying blood-wit for him and inheriting from him.

حَدَّثَنَا حَفْصُ بْنُ عُمَرَ، حَدَّثَنَا شُعْبَةُ، عَنْ بُدَيْلٍ، عَنْ عَلِيِّ بْنِ أَبِي طَلْحَةَ، عَنْ رَاشِدِ بْنِ سَعْدٍ، عَنْ أَبِي عَامِرٍ الْهَوْزَنِيِّ عَبْدِ اللَّهِ بْنِ لُحَىٍّ، عَنِ الْمِقْدَامِ، قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏"‏ مَنْ تَرَكَ كَلاًّ فَإِلَىَّ ‏"‏ ‏.‏ وَرُبَّمَا قَالَ ‏"‏ إِلَى اللَّهِ وَإِلَى رَسُولِهِ ‏"‏ ‏.‏ ‏"‏ وَمَنْ تَرَكَ مَالاً فَلِوَرَثَتِهِ وَأَنَا وَارِثُ مَنْ لاَ وَارِثَ لَهُ أَعْقِلُ لَهُ وَأَرِثُهُ وَالْخَالُ وَارِثُ مَنْ لاَ وَارِثَ لَهُ يَعْقِلُ عَنْهُ وَيَرِثُهُ ‏"‏ ‏.‏

sunnah.com