بُلُوغُ الْمَرَامِ
Bulugh al-Maram 258
The Book of Prayer
وَعَنْ حَكِيمِ بْنِ حِزَامٍ قَالَ : قَالَ رَسُولُ اَللَّهِ - صلى الله عليه وسلم -{ لَا تُقَامُ اَلْحُدُودُ فِي اَلْمَسَاجِدِ , وَلَا يُسْتَقَادُ فِيهَا } رَوَاهُ أَحْمَدُ , وَأَبُو دَاوُدَ بِسَنَدٍ ضَعِيف ٍ [1]
Narrated Hakim bin Hizam (RA): Allah's Messenger (ﷺ) said: "Neither the prescribed punishment nor retaliations should be executed inside the mosque." [Reported by Ahmad and Abu Dawud through a weak Sanad (chain)].
Sunnah.com reference: Book 2, Hadith 130