Sahih Muslim 1619e
حَدَّثَنَا عُبَيْدُ اللَّهِ بْنُ مُعَاذٍ الْعَنْبَرِيُّ، حَدَّثَنَا أَبِي، حَدَّثَنَا شُعْبَةُ، عَنْ عَدِيٍّ، أَنَّهُ سَمِعَ أَبَا حَازِمٍ، عَنْ أَبِي هُرَيْرَةَ، عَنِ النَّبِيِّ صلى الله عليه وسلم أَنَّهُ قَالَ
" مَنْ تَرَكَ مَالاً فَلِلْوَرَثَةِ وَمَنْ تَرَكَ كَلاًّ فَإِلَيْنَا " .Abu Huraira (Allah be pleased with him) reported Allah's Apostle (ﷺ) as saying:He who leaves property, that is for the inheritors; and he who leaves behind destitute children, then it is my responsibility (to look after them)
Sahih Muslim — The Book of the Rules of Inheritance — 1619e