(5) باب مَا يُكْرَهُ مِنْ لَعْنِ شَارِبِ الْخَمْرِ وَإِنَّهُ لَيْسَ بِخَارِجٍ مِنَ الْمِلَّةِ
Narrated `Umar bin Al-Khattab:
During the lifetime of the Prophet (ﷺ) there was a man called `Abdullah whose nickname was Donkey, and he used to make Allah's Messenger (ﷺ) laugh. The Prophet (ﷺ) lashed him because of drinking (alcohol). And one-day he was brought to the Prophet (ﷺ) on the same charge and was lashed. On that, a man among the people said, "O Allah, curse him ! How frequently he has been brought (to the Prophet (ﷺ) on such a charge)!" The Prophet (ﷺ) said, "Do not curse him, for by Allah, I know for he loves Allah and His Apostle."
Reference: Sahih al-Bukhari 6780
In-book reference: Book 86, Hadith 9
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 8, Book 81, Hadith 771