The Prophet ﷺ said, "I had previously forbidden you from using certain containers, but now you may make nabidh in them, and avoid every intoxicant."
حدثنا عبد الحميد بن بيان الواسطي حدثنا إسحق بن يوسف عن شريك عن سماك عن القاسم بن مخيمرة
عن النبي ﷺ قال كنت نهيتكم عن الأوعية فانتبذوا فيه واجتنبوا كل مسكر
Muslim narrated it in Kitab al-Janaiz, chapter on the Prophet asking permission from his Lord, Mighty and Majestic, to visit his mother's grave, hadith no. 1067/977 through another route from Ubaydullah bin Burayda, and the hadith has corroborating narrations.