NASAI-KUBRA 5284:
from Jābir —
[Machine] The Messenger of Allah ﷺ said, "Whoever drinks alcohol, strike him; then if he does it again, strike him; then if he does it again, strike him. If he does it a fourth time, then kill him." The Messenger of Allah ﷺ struck Nu'ayman four times, and the Muslims saw that the punishment had been implemented and that the killing had been lifted.
الكبرى للنسائي ٥٢٨٤:
عن جابر —
قَالَ رَسُولُ اللهِ ﷺ «مَنْ شَرِبَ الْخَمْرَ فَاضْرِبُوهُ فَإِنْ عَادَ فَاضْرِبُوهُ فَإِنْ عَادَ فَاضْرِبُوهُ فَإِنْ عَادَ الرَّابِعَةَ فَاضْرِبُوا عُنُقَهُ» فَضَرَبَ رَسُولُ اللهِ ﷺ نُعَيْمَانَ أَرْبَعَ مَرَّاتٍ فَرَأَى الْمُسْلِمُونَ أَنَّ الْحَدَّ قَدْ وَقَعَ وَأَنَّ الْقَتْلَ قَدْ رُفِعَ
hadithunlocked.com