كتاب الأشربة
36  
The Book of Drinks
(6)
Chapter: The prohibition of making Nabidh in Al-Muzaffat, Ad-Dubba' (Gourds), Al-Hantam and An-Naqir; This has been abrogated and now it is permitted, so long as it does not become intoxicating
(6)
باب النَّهْيِ عَنْ الاِنْتِبَاذِ فِي الْمُزَفَّتِ وَالدُّبَّاءِ وَالْحَنْتَمِ وَالنَّقِيرِ وَبَيَانِ أَنَّهُ مَنْسُوخٌ وَأَنَّهُ الْيَوْمَ حَلاَلٌ مَا لَمْ يَصِرْ مُسْكِرًا
Sahih Muslim 977 d

Ibn Buraida, on the authority of his father, reported Allah's Messenger (ﷺ) as saying:

I had forbidden you (from the preparation of Nabidh) and drinking it in certain vessels, (but now you may do so if you like) for it is not vessels or a vessel that makes a thing lawful or unlawful. It is every intoxicant that is unlawful.
وَحَدَّثَنَا حَجَّاجُ بْنُ الشَّاعِرِ، حَدَّثَنَا ضَحَّاكُ بْنُ مَخْلَدٍ، عَنْ سُفْيَانَ، عَنْ عَلْقَمَةَ بْنِ، مَرْثَدٍ عَنِ ابْنِ بُرَيْدَةَ، عَنْ أَبِيهِ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم قَالَ ‏ "‏ نَهَيْتُكُمْ عَنِ الظُّرُوفِ وَإِنَّ الظُّرُوفَ - أَوْ ظَرْفًا - لاَ يُحِلُّ شَيْئًا وَلاَ يُحَرِّمُهُ وَكُلُّ مُسْكِرٍ حَرَامٌ ‏"‏ ‏.‏
Reference : Sahih Muslim 977d
In-book reference : Book 36, Hadith 82
USC-MSA web (English) reference : Book 23, Hadith 4953
  (deprecated numbering scheme)