Sunan Ibn Majah
2600
Hasan+3

Amr bin Shu'aib narrated from his father, from his grandfather, that:the Messenger of Allah (ﷺ) forbade lashing for the legal punishment in the mosques

HasanAl-Albani
HasanMuhammad Fouad Abd al-Baqi