Sayyidah Umm Atiyyah (may Allah be pleased with her) said: The Prophet (peace and blessings be upon him) commanded us to bring out, on the two Eids, the women kept in seclusion and the menstruating women; they would attend the supplication and prayer of the Muslims along with them, but the menstruating women would keep away from the prayer.
Hadith Referenceالمعجم الكبير للطبراني / مسند النساء / 21572