Sunan Ibn Majah — Establishing the Prayer and the Sunnah Regarding Them — Hadith No: 1308
Translation
It was narrated that Umm ‘Atiyyah said:“The Messenger of Allah (ﷺ) said: ‘Bring out the women who have attained puberty and those who are in seclusion so that they may attend the ‘Eid prayer and (join in) the supplication of the Muslims. But let the women who are menstruating avoid the prayer place.”