كتاب الأشربة
36  
The Book of Drinks
(9)
Chapter: The permissibility of Nabidh so long as it has not become strong and has not become intoxicating
(9)
باب إِبَاحَةِ النَّبِيذِ الَّذِي لَمْ يَشْتَدَّ وَلَمْ يَصِرْ مُسْكِرًا ‏‏
Sahih Muslim 2004 d

Ibn Abbas reported that Nabidh was prepared from raisins for Allah's Messenger (ﷺ) in the waterskin and he would drink it on that day and on the next day and the day following and when It was the evening of the third day, and he would drink it and give it to (his Companions) and if something was left over, he threw that away.

وَحَدَّثَنَا إِسْحَاقُ بْنُ إِبْرَاهِيمَ، أَخْبَرَنَا جَرِيرٌ، عَنِ الأَعْمَشِ، عَنْ يَحْيَى أَبِي عُمَرَ، عَنِ ابْنِ عَبَّاسٍ، قَالَ كَانَ رَسُولُ اللَّهِ صلى الله عليه وسلم يُنْبَذُ لَهُ الزَّبِيبُ فِي السِّقَاءِ فَيَشْرَبُهُ يَوْمَهُ وَالْغَدَ وَبَعْدَ الْغَدِ فَإِذَا كَانَ مِسَاءُ الثَّالِثَةِ شَرِبَهُ وَسَقَاهُ فَإِنْ فَضَلَ شَىْءٌ أَهْرَاقَهُ ‏.‏
Reference : Sahih Muslim 2004d
In-book reference : Book 36, Hadith 103
USC-MSA web (English) reference : Book 23, Hadith 4974
  (deprecated numbering scheme)