Umm 'Atiyya said: He (the Apostle of Allah (ﷺ) ) commanded us that we should take out unmarried women and purdah-observing ladies for 'Id prayers, and he commanded the menstruating women to remain away from the place of worship of the Muslims.
Hadith ReferenceSahih Muslim / The Book of Prayer - Two Eids / Hadith: 890