A group of the companions of Muhammad ﷺ reported that the Messenger of Allah ﷺ said, "Whoever drinks wine, flog him. If he drinks again, flog him. If he drinks again, flog him. Then if he drinks again, kill him."
أخبرنا إسحق بن إبراهيم قال أنبأنا جرير عن مغيرة عن عبد الرحمن بن أبي نعم
ونفر من أصحاب محمد ﷺ قالوا قال رسول الله ﷺ من شرب الخمر فاجلدوه ثم إن شرب فاجلدوه ثم إن شرب فاجلدوه ثم إن شرب فاقتلوه
[Sahih] It is also in Al-Kubra, hadith no. 5171. Abu Dawud narrated it in the Book of Hudud, chapter, "If someone repeatedly drinks wine," hadith no. 4483, through another route, from Nafi from Ibn Umar. See the following hadith as well.