From his father, that the Messenger of Allah (ﷺ) said: "I had indeed forbidden you from…

Jami` at-Tirmidhi Book 26 Hadith 9

Jami` at-Tirmidhi #1869

The Book on Drinks 26:9

Narrated Sulaiman bin Buraidah:

From his father, that the Messenger of Allah (ﷺ) said: "I had indeed forbidden you from using containers, but the container does not make anything lawful nor unlawful, rather every intoxicant is unlawful." [Abu 'Eisa said:] This Hadith is Hasan Sahih.

Chapter: What Has Been Related Permitting That Nabidh Be Prepared Ibn Containers

Grade: Sahih (Darussalam)