The Messenger of Allah ﷺ said to me, "Hand me the mat from the mosque."I said, "I am menstruating."He replied, "Your menstruation is not in your hand."
قال لي رسول الله ﷺ: ناوليني الحمرة من المسجد قالت قلت: إني حائض، قال: إن حيضتك ليست في يدك.
Muslim narrated it in the Book of Menstruation (298), through the hadith of Amash, from Thabit bin Ubayd, from Qasim bin Muhammad, from Ayesha... and I have quoted it above.Regarding her words, "from the masjid," Abu Abbas Qurtubi said in Mufhim (1/558), "There has been disagreement about this prepositional phrase, 'from the masjid,' as to what it relates to. One group connected it to 'hand me,' and used it as evidence for the permissibility of a menstruating woman entering the masjid for a need that arises for her... Another group connected it to her saying, 'The Messenger of Allah said to me from the masjid, "Hand me the mat,"' taking it as an inversion of word order. This is the basis of the well known position held by the scholars, that she may not enter the masjid, neither to stay nor to pass through..."I say, the second interpretation is supported by the hadith of Abu Hurairah that follows. That is, the Prophet
said that to her from the masjid so that she could hand it to him from outside the masjid, not that the Prophet ordered her to bring it out of the masjid, because he
was in retreat, while Ayesha was in her chamber, menstruating, in light of his saying, "Your menstruation is not in your hand." She was only afraid of putting her hand into the masjid. Had he ordered her to enter the masjid, there would have been no point in singling out the hand. End of quote, said by Qadi Iyad.