It is narrated from Sayyiduna Hakeem bin Hizam that the Messenger of Allah, peace and blessings be upon him, said: Punishments should not be carried out in mosques, nor should retribution (qisas) be taken in them.
Hadith Referenceمسند احمد / مسند المكيين / 15579
Hadith Gradingحکم دارالسلام:إسناده ضعيف لجهالة العباس بن عبدالرحمن