Abu Hurairah (May Allah bepleased with him) reported:
A man who had drunk wine was brought to the Prophet (ﷺ) and he asked us to beat him; some struck him with their hands, some with their garments (making a whip) and some with their sandals. When he (the drunkard) had gone, some of the people said: "May Allah disgrace you!" He (the Prophet (ﷺ)) said, "Do not say so. Do not help the devil against him".[Al-Bukhari].
وعنه قال: أتى النبي صلى الله عليه وسلم برجل قد شرب خمرًا قال: "اضربوه" قال أبو هريرة : فمنا الضارب بيده، والضارب بنعله، والضارب بثوبه. فلما انصرف قال بعض القوم: أخزاك الله قال: "لا تقولوا هكذا لا تعينوا عليه الشيطان" ((رواه البخاري)).