(4) باب اعْتِزَالِ الْحُيَّضِ مُصَلَّى النَّاسِ
It was narrated that Muhammad said:
"I met Umm 'Atiyyah and said to her: 'Did you hear the Messenger of Allah (ﷺ) say (anything)?' When she mentioned him, she would say: 'May my father be ransomed for him.' (He said) 'Bring out the adolescent girls and the women in seclusion and let them witness goodness and the supplication of the Muslims, but let the menstruating women keep away from the place where the people pray.'"
Reference: Sunan an-Nasa'i 1559
In-book reference: Book 19, Hadith 4
English translation: Vol. 2, Book 19, Hadith 1560