Sahih Muslim , Book 19, Hadith 4357 (USC-MSA)

It his been narrated on the authority of Abu Huraira that the Messenger of Allah said: " We do not have any heirs; what we leave behind is a charitable endowment."

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

sunnah.com