The Messenger of Allah ﷺ forbade carrying out the prescribed lashes inside mosques.
حدثنا محمد بن رمح أنبأنا عبد الله بن لهيعة عن محمد بن عجلان أنه سمع
أن رسول الله ﷺ نهى عن جلد الحد في المساجد
No references are available.
[Its chain of transmission is daif]. Busiri said, "This chain is daif due to the weakness of Ibn Lahia." See no. 330.