Hadith #2336The Chapters on Legal Punishments · Narrated by Abd al-Mjyd bin Aby عبد المجيد بن أبي يزيد وهب العقيلي, al-'Ada' bin Khalid bin Hudhah, Muhammad bin Bashar Bindar محمد بن بشار بندار
the Messenger of Allah (ﷺ) forbade lashing for the legal punishment in the mosques.