(8) باب حَدِّ الْخَمْرِ
Anas reported that Allah's Apostle (ﷺ) used to strike forty times with shoes and palm branches (in case of drinking of) wine. The rest of the hadith is the same and there is no mention of pastures and towns.
Reference: Sahih Muslim 1706 e
In-book reference: Book 29, Hadith 59
USC-MSA web (English) reference(deprecated numbering scheme): Book 17, Hadith 4230