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].
Arabic/English book reference: Book 1, Hadith 243