كتاب الجهاد والسير
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 1760 b

A similar hadith has been narrated on the authority of Abu Zinad through a different chain of transmitters.

حَدَّثَنَا مُحَمَّدُ بْنُ يَحْيَى بْنِ أَبِي عُمَرَ الْمَكِّيُّ، حَدَّثَنَا سُفْيَانُ، عَنْ أَبِي الزِّنَادِ، بِهَذَا الإِسْنَادِ ‏.‏ نَحْوَهُ ‏.‏
Reference : Sahih Muslim 1760b
In-book reference : Book 32, Hadith 65
USC-MSA web (English) reference : Book 19, Hadith 4356
  (deprecated numbering scheme)