كتاب الجهاد والسير
32  
The Book of Jihad and Expeditions
(16)
Chapter: The words of the Prophet (saws): "We (Prophets) have no heirs and whatever we leave behind is charity."
(16)
باب قَوْلِ النَّبِيِّ صلى الله عليه وسلم ‏"‏ لاَ نُورَثُ مَا تَرَكْنَا فَهُوَ صَدَقَةٌ ‏"‏ ‏‏
Sahih Muslim 1758

It is narrated on the authority of 'A'isha who said:

When the Messenger of Allah (ﷺ) passed away, his wives made up their minds to send 'Uthman b. 'Affan (as their spokesman) to Abu Bakr to demand from him their share from the legacy of the Prophet (ﷺ). (At this), A'isha said to them: Hasn't the Messenger of Allah (ﷺ) said:" We (Prophets) do not have any heirs; what we leave behind is (to be given in) charity"?
حَدَّثَنَا يَحْيَى بْنُ يَحْيَى، قَالَ قَرَأْتُ عَلَى مَالِكٍ عَنِ ابْنِ شِهَابٍ، عَنْ عُرْوَةَ، عَنْ عَائِشَةَ، أَنَّهَا قَالَتْ إِنَّ أَزْوَاجَ النَّبِيِّ صلى الله عليه وسلم حِينَ تُوُفِّيَ رَسُولُ اللَّهِ صلى الله عليه وسلم أَرَدْنَ أَنْ يَبْعَثْنَ عُثْمَانَ بْنَ عَفَّانَ إِلَى أَبِي بَكْرٍ فَيَسْأَلْنَهُ مِيرَاثَهُنَّ مِنَ النَّبِيِّ صلى الله عليه وسلم قَالَتْ عَائِشَةُ لَهُنَّ أَلَيْسَ قَدْ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏ "‏ لاَ نُورَثُ مَا تَرَكْنَا فَهُوَ صَدَقَةٌ ‏"‏ ‏.‏
Reference : Sahih Muslim 1758
In-book reference : Book 32, Hadith 60
USC-MSA web (English) reference : Book 19, Hadith 4351
  (deprecated numbering scheme)