كتاب الزكاة
12  
The Book of Zakat
(50)
Chapter: Zakat is forbidden for the messenger of Allah pbuh and his family, and they are Banu Hashim and Banu Al-Muttalib, and no one else
(50)
باب تَحْرِيمِ الزَّكَاةِ عَلَى رَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ وَعَلَى آلِهِ وَهُمْ بَنُو هَاشِمٍ وَبَنُو الْمُطَّلِبِ دُونَ غَيْرِهِمْ
Sahih Muslim 1071 b

Anas b. Malik reported that the Messenger of Allah (ﷺ) found a date lying on the path and said:

If it were not out of Sadaqa, I would have eaten it.
وَحَدَّثَنَا أَبُو كُرَيْبٍ، حَدَّثَنَا أَبُو أُسَامَةَ، عَنْ زَائِدَةَ، عَنْ مَنْصُورٍ، عَنْ طَلْحَةَ بْنِ مُصَرِّفٍ، حَدَّثَنَا أَنَسُ بْنُ مَالِكٍ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم مَرَّ بِتَمْرَةٍ بِالطَّرِيقِ فَقَالَ ‏ "‏ لَوْلاَ أَنْ تَكُونَ مِنَ الصَّدَقَةِ لأَكَلْتُهَا ‏"‏ ‏.‏
Reference : Sahih Muslim 1071b
In-book reference : Book 12, Hadith 216
USC-MSA web (English) reference : Book 5, Hadith 2345
  (deprecated numbering scheme)