Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bayhaqi:17499Abū Zakariyyā b. Abū Isḥāq > Abū al-ʿAbbās Muḥammad b. Yaʿqūb > al-Rabīʿ b. Sulaymān > al-Shāfiʿī > Ibrāhīm b. Abū Yaḥyá > Jaʿfar b. Muḥammad from his father > ʿAlī b. Abū Ṭālib

[Machine] I do not give the punishment of whipping to a man who drinks alcohol or intoxicating wine, except if it is mandated by law.  

البيهقي:١٧٤٩٩أَخْبَرَنَا أَبُو زَكَرِيَّا بْنُ أَبِي إِسْحَاقَ ثنا أَبُو الْعَبَّاسِ مُحَمَّدُ بْنُ يَعْقُوبَ أنبأ الرَّبِيعُ بْنُ سُلَيْمَانَ ثنا الشَّافِعِيُّ ثنا إِبْرَاهِيمُ بْنُ أَبِي يَحْيَى عَنْ جَعْفَرِ بْنِ مُحَمَّدٍ عَنْ أَبِيهِ أَنَّ عَلِيَّ بْنَ أَبِي طَالِبٍ ؓ قَالَ

لَا أُوتَى بِرَجُلٍ شَرِبَ خَمْرًا وَلَا نَبِيذًا مُسْكِرًا إِلَّا جَلَدْتُهُ الْحَدَّ