Sayyiduna Hakim bin Hizam (may Allah be pleased with him) said: "The Messenger of Allah (peace and blessings be upon him) forbade that retaliation (qisas) be taken in the mosques, or that poetry be recited in them, or that the prescribed punishments (hudud) be carried out in them."
Hadith Referenceالمعجم الكبير للطبراني / باب الحاء / 3117