He asked the Prophet ﷺ about wine, and he forbade it. He asked him again, and he forbade it.He said to him, "Prophet of Allah, it is a medicine."The Prophet ﷺ replied, "No, rather it is a disease."
حدثنا مسلم بن إبراهيم حدثنا شعبة عن سماك عن علقمة بن وائل عن أبيه ذكر
سأل النبي ﷺ عن الخمر فنهاه ثم سأله فنهاه فقال له يا نبي الله إنها دواء قال النبي ﷺ لا ولكنها داء
No references are available.
Muslim narrated it in the Book of Drinks, chapter on the prohibition of using wine for treatment and the clarification that it is not a medicine, hadith no. 1984, from the hadith of Shubah, through this same chain.