Statements from the Scholars Regarding Women and Their Children in the Masjid
Shaykh Muhammad bin Ibraaheem Aali Ash-Shaykh (may Allaah have mercy upon him) was asked about women coming into the masjid with their children:
A. "We benefit you (by saying) that the women are not to be prevented from coming into the Masaajid with their children in Ramadaan. The Sunnah has indicated (the permissibility) of the women coming to the Masaajid with their children during the time of the Messenger of Allaah (sallallaahu alayhi wa sallam). This is based upon the Hadeeth:
"Indeed I enter into the prayer and I want to prolong it. Then, I hear the crying of the child. As a result of that, I shorten it out of fear of putting a hardship upon the child's mother".
From that (we also have) the Prophet's (sallallaahu alayhi wa sallam) carrying of Umaamah in the obligatory prayer while he was leading the people in prayer inside the Masjid. However, it is upon them (the mothers of the children) to be diligent in protecting the Masjid from the impurities by way of being watchful of the children while they're sleeping as well as other than that".
Source: Silsilah Fataawaa Al-Mar-ah Al-Muslimah pg. 16
Shaykh Saalih Al-Fawzaan (may Allaah preserve him) was asked:
Q. What is the ruling on a woman bringing her children to the Masjid?
A. There are details regarding the matter of taking the children to the Masjid. If they have reached the age of seven, then they are to be taken to the Masjid in order to train them upon making the Salaah, and them being cultivated upon that. Also, the performance of the voluntary prayer will be considered sound from them. If they are under the age of seven, they are not to be taken to the Masjid, except in the case where those who are praying will be safe from their harm/annoyance, as well as the Masjid being safe from their bad activities or making it impure. So taking them, in this situation, is permissible if it is possible to regulate them and if there is a need to go to the Masjid with them. Like if there's a fear for them if they were to remain in the home."
Source: Silsilah Fataawaa Al-Mar-ah Al-Muslimah pg. 17
Sisters Upon Al-Istiqaamah