Narrated by Sayyiduna Hakim bin Hizam (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "No legal punishments should be carried out in the mosques, nor should retribution (qisas) be taken there."
Hadith Takhrij«اسناده ضعيف لجھالة العباس بن عبد الرحمن المدني۔ أخرجه ابن ابي شيبة: 10/ 42، والطبراني في ’’الكبير‘‘: 3131، والدارقطني في ’’السنن‘‘: 3/ 86 ، (انظر مسند أحمد ترقيم الرسالة: 15579 ترقیم بيت الأفكار الدولية: 15664»
Narrated by Sayyiduna Abdullah bin Amr bin al-As (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) said: The most transgressive person in the sight of Allah is the one who kills in the Haram, or kills someone who did not kill, or takes revenge for the days of ignorance.
It is narrated from Sayyiduna Anas bin Malik, may Allah be pleased with him, that in the year of the conquest of Makkah, the Messenger of Allah, peace and blessings be upon him, entered Makkah while there was a helmet on his head. When he, peace and blessings be upon him, removed it, a man came to him and said: Ibn Khatal is hanging onto the curtains of the Ka'bah. He, peace and blessings be upon him, said: Kill him.