The words of the Prophet (ﷺ): "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."