Wa’il al-Hadrami reported: Tariq ibn Suwayd asked the Prophet, peace and blessings be upon him, about wine and the Prophet prohibited him from preparing it. Tariq said, “I only prepare it as medicine.” The Prophet said, “Verily, it is not a cure, but rather it is a sickness.”
Source: Ṣaḥīḥ Muslim 1851
Grade: Sahih (authentic) according to Muslim
عَنْ وَائِلٍ الْحَضْرَمِيِّ أَنَّ طَارِقَ بْنَ سُوَيْدٍ الْجُعْفِيَّ سَأَلَ النَّبِيَّ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ عَنِ الْخَمْرِ فَنَهَاهُ أَنْ يَصْنَعَهَا فَقَالَ إِنَّمَا أَصْنَعُهَا لِلدَّوَاءِ فَقَالَ إِنَّهُ لَيْسَ بِدَوَاءٍ وَلَكِنَّهُ دَاءٌ
1984 صحيح مسلم كتاب الأشربة باب تحريم التداوي بالخمر