Mishkat al-Masabih
Abu Huraira said: When a man who had been drinking was brought to the Prophet (ﷺ) he told those present to beat him, so some of us beat him with their hands, some with their sandals and some with their garments. Then when the man went away and one of those present said, “God shame you!’' the Prophet (ﷺ) said, “Do not say such a thing. Do not help the devil to get power over him.” Bukhari transmitted it.
وَعَنْ أَبِي هُرَيْرَةَ قَالَ: أَتَى النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ بِرَجُلٍ قَدْ شَرِبَ الْخَمْرَ فَقَالَ: «اضْرِبُوهُ» فَمِنَّا الضَّارِبُ بِيَدِهِ وَالضَّارِبُ بِنَعْلِهِ وَالضَّارِبُ بِثَوْبِهِ فَلَمَّا انْصَرَفَ قَالَ بَعْضُ الْقَوْمِ: أَخْزَاكَ اللَّهُ قَالَ: «لَا تَقُولُوا هَكَذَا لَا تُعِينُوا عَلَيْهِ الشَّيْطَانَ» . رَوَاهُ الْبُخَارِيُّ
Reference