It is narrated from Sayyiduna Abdullah bin Mas'ud (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "I had forbidden you from making nabidh in certain vessels. Listen! A vessel does not make anything unlawful; every intoxicant is unlawful."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 10266