Sahih Muslim
1706.01

Anas b. Malik reported that a person who had drink wine was brought to Allah's Apostle (ﷺ). He gave him forty stripes with two lashes. Abu Bakr also did that, but when Umar (assumed the responsibilities) of the Caliphate, he consulted people and Abd al-Rahman said:The mildest punishment (for drinking) is eighty (stripes) and 'Umar their prescribed this punishment

1706.02

This hadith has been narrated on the authority of Anas through another chain of transmitters

1706.03

Anas b. Malik reported that Allah's Apostle (ﷺ) gave a beating with palm branches and shoes, and that Abu Bakr gave forty lashes. When Umar (became the Commander of the Faithful) and the people went near to pastures and towns, he said (to the Companions of the Holy Prophet). What is your opinion about lashing for drinking? Thereupon Abd al-Rahman b. Auf said:My opinion is that you fix it as the mildest punishment. Then 'Umar inflicted eighty stripes

1706.04

This hadith has been narrated on the authority of Hisham with the same chain of transmitters

1706.05

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