The Prophet ﷺ said, "Legal punishments are not to be carried out in the mosques, nor is a father to be executed for killing his child."
حدثنا محمد بن بشار حدثنا ابن أبي عدي عن إسمعيل بن مسلم عن عمرو بن دينار عن طاوس
عن النبي ﷺ قال لا تقام الحدود في المساجد ولا يقتل الوالد بالولد
No references are available.
Its isnad is daif. Ibn Majah also narrated it, no. 2661, from the hadith of Ismail bin Muslim, with the same wording, and he is daif. The hadith has daif corroborating narrations, see the previous hadith.