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

It has been narrated on the authority of 'A'isha that Fatima and 'Abbas approached Abu Bakr, soliciting transfer of the legacy of the Messenger of Allah (ﷺ) to them. At that time, they were demanding his (Holy Prophet's) lands at Fadak and his share from Khaibar. Abu Bakr said to them:

I have heard from the Messenger of Allah (ﷺ). Then he quoted the hadith having nearly the same meaning as the one which has been narrated by Uqail on the authority of al-Zuhri (and which his gone before) except that in his version he said: Then 'Ali stood up, extolled the merits of Abu Bakr mentioned his superiority, and his earlier acceptance of Islam. Then he walked to Abu Bakr and swore allegiance to him. (At this) people turned towards 'Ali and said: you have done the right thing. And they became favourably inclined to 'Ali after he had adopted the proper course of action.
حَدَّثَنَا إِسْحَاقُ بْنُ إِبْرَاهِيمَ، وَ مُحَمَّدُ بْنُ رَافِعٍ وَعَبْدُ بْنُ حُمَيْدٍ قَالَ ابْنُ رَافِعٍ حَدَّثَنَا وَقَالَ الآخَرَانِ، أَخْبَرَنَا عَبْدُ الرَّزَّاقِ، أَخْبَرَنَا مَعْمَرٌ، عَنِ الزُّهْرِيِّ، عَنْ عُرْوَةَ، عَنْ عَائِشَةَ، أَنَّصلى الله عليه وسلم وَهُمَا حِينَئِذٍ يَطْلُبَانِ أَرْضَهُ مِنْ فَدَكٍ وَسَهْمَهُ مِنْ خَيْبَرَ ‏.‏ فَقَالَ لَهُمَا أَبُو بَكْرٍ إِنِّي سَمِعْتُ رَسُولَ اللَّهِ صلى الله عليه وسلم ‏.‏ وَسَاقَ الْحَدِيثَ بِمِثْلِ مَعْنَى حَدِيثِ عُقَيْلٍ عَنِ الزُّهْرِيِّ غَيْرَ أَنَّهُ قَالَ ثُمَّ قَامَ عَلِيٌّ فَعَظَّمَ مِنْ حَقِّ أَبِي بَكْرٍ وَذَكَرَ فَضِيلَتَهُ وَسَابِقَتَهُ ثُمَّ مَضَى إِلَى أَبِي بَكْرٍ فَبَايَعَهُ فَأَقْبَلَ النَّاسُ إِلَى عَلِيٍّ فَقَالُوا أَصَبْتَ وَأَحْسَنْتَ ‏.‏ فَكَانَ النَّاسُ قَرِيبًا إِلَى عَلِيٍّ حِينَ قَارَبَ الأَمْرَ الْمَعْرُوفَ ‏.‏
Reference : Sahih Muslim 1759b
In-book reference : Book 32, Hadith 62
USC-MSA web (English) reference : Book 19, Hadith 4353
  (deprecated numbering scheme)