Sunan Ibn Majah, Book 30, Hadith 36 (Ibn Majah 3408)

It was narrated from Ibn Mas’ud that the Messenger of Allah (ﷺ) said:

“I used to forbid you from making Nabidh in certain vessels, but a vessel does not make something unlawful. All intoxicants are unlawful.”