Burayda reported,

The Messenger of Allah ﷺ said, "I had forbidden you from certain containers, but containers do not make anything lawful or unlawful. Every intoxicant is forbidden."

Muslim 5208

Sahih

و حدثنا حجاج بن الشاعر حدثنا ضحاك بن مخلد عن سفيان عن علقمة بن مرثد

عن ابن بريدة عن أبيه

أن رسول الله ﷺ قال نهيتكم عن الظروف وإن الظروف أو ظرفا لا يحل شيئا ولا يحرمه وكل مسكر حرام

مسلم 5208صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Drinks
Chapter
Prohibition of making nabidh in pitch-coated containers, gourds, green-glazed jars, and hollowed palm trunks, and clarification that this is abrogated and today it is permissible as long as it does not become intoxicating
Numbering
Darussalam 5208
Muslim 5208