The Book Pertaining to Punishments Prescribed by Islam (Kitab Al-Hudud)
Muslim :: Book 17 : Hadith 4230
Anas reported that Allah's Apostle (may peace be upon him) 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.