A:
It is not permissible for a menstruating woman or a person who is Junub (in a state of major ritual impurity) to
sit in the Masjid or the sections connected to it, for the Prophet (peace be upon him) said:
I do not deem the Masjid lawful for a menstruating woman and for a Junub.
(Related by
Abu Dawud and ranked as Sahih [authentic] by
Ibn Khuzaymah) However, it is permissible for
menstruating women to go into the Masjid to fetch something, for Allah (Exalted be He) says: (Part No. 5; Page No. 261)
...except when travelling on the road (without enough water, or just passing through a mosque)
The Prophet (peace be upon him) also
asked
`Aishah to get him the mat from the Masjid,
while she was menstruating.May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.