´It was narrated from Wathilah bin Asqa' that:` The Prophet said: "Keep your infants, your insane and your evil ones away from your mosques. Avoid engaging in transactions and disputes, raising your voices, carrying out your prescribed punishments and unsheathing your swords therein. Make places for purification at their gates, and perfume them with incense on Fridays." (Maudu')
Hadith Referenceسنن ابن ماجه / كتاب المساجد والجماعات / 750
Hadith Gradingالألبانی:ضعيف | زبیر علی زئی:ضعيف, إسناده موضوع, أبو سعيد المصلوب: كذاب وضاع, انوار الصحيفه، صفحه نمبر 406
Hadith Takhrij« تفرد بہ ابن ماجہ ، ( تحفة الأشراف : 11751 ، ومصباح الزجاجة : 272 ) ( ضعیف جداً ) » ( اس حدیث کی سند میں حارث بن نبہان ضعیف ہیں ، اور ابو سعد محمدبن سعید المصلوب فی الزندقہ متروک )
Brief Explanation
1؎: Bringing children to the mosque is disliked (makruh) when they cry or scream, or there is a fear that they may urinate or defecate; otherwise, from other authentic ahadith, it is established that children did come to the mosque.