From Sahih Muslim (Hadith 5207):
Abdullah b. Buraida, on the authority of his father, reported Allah's Messenger (ﷺ) as saying:I had forbidden you from the preparation of Nabidh except in a waterskin. But now you may drink in all vessels, but do not drink what is intoxicant
Reference: Muslim 5207