Sahih Muslim | Book 17 | Hadith Number 4230

Narrated by Anas
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.