Hadithcore
Mishkat al-Masabih, 3470

Ibn ‘Abbas reported God’s Messenger as saying, “The prescribed punishments are not to be inflicted in mosques and a father is not to be killed for a son.” Tirmidhi and Darimi transmitted it.

وَعَنِ ابْنِ عَبَّاسٍ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «لَا تُقَامُ الْحُدُودُ فِي الْمَسَاجِدِ وَلَا يُقَادُ بِالْوَلَدِ الْوَالِدُ» . رَوَاهُ التِّرْمِذِيّ والدارمي

References1 variant
In-Book Reference
Book 16, Hadith 21