Waail bin Hajar reported,

Hadrami reported that Tariq bin Suwayd al-Jufi asked the Prophet ﷺ about wine, and he forbade him from making it, or expressed dislike for him making it.Tariq said, "I only make it as medicine."The Prophet ﷺ replied, "It is not a medicine, but rather a disease."

Azami 11546

Sahih

عن وائل بن حجر

الحضرمي: أن طارق بن سويد الجعفي سأل النبي ﷺ عن الخمر، فنهاه أو كره أن يصنعها فقال: إنما أصنعها للدواء فقال: إنه ليس بدواء، ولكنه داع

الأعظمي 11546صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Medicine
Chapter
Medicine
Section
Prohibition of seeking treatment with unlawful substances
Numbering
Jami al-Kamil 11546 (2nd edition)
Azami 11546