Sayyidah Umm Atiyyah (may Allah be pleased with her) says: The Prophet (peace and blessings be upon him) ordered us "to take the young women, those kept in seclusion and the virgins out to the Eid prayer ground." She says: The menstruating women would stay behind the people and say takbir along with them.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب صلاة العيدين / 6242