Shaikh al-Albani rahimahullah wrote:
“As for older children, then their influence [from the signs and environment of Islam] is clear and self-evident. However, if it is found among them one who is playing in the Masaajid and running, then it is upon the fathers and guardians to order them, discipline them, and nurture them. Or for the administer or custodian [of the masjid] to kick them out. This action was mentioned by Hafidh ibn Kathir: If Umar ibn al-Khattab (may Allah be pleased with him) saw children playing in the masjid, he would hit them with his stick. He would look in the masjid after Isha and not leave anyone inside of it”.
Thamr al-Mustadaab pg. 762
وأما كبار الأطفال فتأثرهم بذلك واضح مسلم غير أنه إذا وجد فيهم من يلعب في المساجد ويركض فعلى آبائهم وأولياء أمرهم تأديبهم وتربيتهم أو على القيم والخادم أن يطردهم وعلى هذا عمل ما ذكره الحافظ ابن كثير :
( وقد كان عمر بن الخطاب رضي الله عنه إذا رأى صبيانا يلعبون في المسجد ضربهم بالمخففة - وهي الدرة - وكان يفتش المسجد بعد العشاء فلا يترك فيها أحدا )
المصدر :
762 نقلاً عن الثمر المستطاب في فقه السنة والكتاب