Sayyiduna Jubayr bin Mut'im (may Allah be pleased with him) narrates that the Prophet (peace and blessings be upon him) said: "The prescribed punishments (hudud) should not be carried out in the mosques."
Al-Tabarani recorded it in al-Mu'jam al-Kabir; its chain contains a narrator, al-Waqidi, who is da'if (weak).
Hadith Referenceمجمع الزوائد ومنبع الفوائد / كتاب الصلاة / 2048