Sahih Muslim, Book 36, Hadith 82 (Muslim 5162)

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.