Sahih Muslim 1761
Sahih Muslim · Book 32: The Book of Jihad and Expeditions · The words of the Prophet (saws): "We (Prophets) have no heirs and whatever we leave behind is charity."
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."