كتاب الفرائض
23  
The Book of the Rules of Inheritance
(4)
Chapter: Whoever Leaves Behind Wealth, It Is For His Heirs
(4)
باب مَنْ تَرَكَ مَالاً فَلِوَرَثَتِهِ ‏‏
Sahih Muslim 1619 c

Abn Huraira (Allah be pleased with him) reported Allah's Apostle (ﷺ) having said this:

By Him in Whose Hand is the life of Muhammad, there is no believer on the earth with whom I am not the nearest among all the people. He who amongst you (dies) and leaves a debt, I am there to pay it, and he who amongst you (dies) leaving behind children I am there to look after them. And he who amongst You leaves behind property, that is for the inheritor whoever he is.
حَدَّثَنِي مُحَمَّدُ بْنُ رَافِعٍ، حَدَّثَنَا شَبَابَةُ، قَالَ حَدَّثَنِي وَرْقَاءُ، عَنْ أَبِي الزِّنَادِ، عَنِ الأَعْرَجِ، عَنْ أَبِي هُرَيْرَةَ، عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ ‏ "‏ وَالَّذِي نَفْسُ مُحَمَّدٍ بِيَدِهِ إِنْ عَلَى الأَرْضِ مِنْ مُؤْمِنٍ إِلاَّ أَنَا أَوْلَى النَّاسِ بِهِ فَأَيُّكُمْ مَا تَرَكَ دَيْنًا أَوْ ضَيَاعًا فَأَنَا مَوْلاَهُ وَأَيُّكُمْ تَرَكَ مَالاً فَإِلَى الْعَصَبَةِ مَنْ كَانَ ‏"‏ ‏.‏
Reference : Sahih Muslim 1619c
In-book reference : Book 23, Hadith 20
USC-MSA web (English) reference : Book 11, Hadith 3946
  (deprecated numbering scheme)