Muhammad (may Allah have mercy on him) narrates from Sayyidah Umm Atiyyah (may Allah be pleased with her) that she said: "We were commanded to bring out the secluded women on the two Eids, and that the menstruating women should attend the congregation of the Muslims and their supplication, and keep away from the prayer."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب صلاة العيدين / 6238