Umm Atiya reported,

She said, meaning the Prophet ﷺ, "He commanded us to bring out the young unmarried women and the secluded maidens for the two Eid prayers, and he ordered menstruating women to keep away from the Muslims' prayer ground."

Azami 3188

Sahih

عن أم عطية قالت

أمرنا (تعني النبي ﷺ) أن نخرج في العيدين العواتق وذوات الخدور، وأمر الحيض أن يعتزلن مصلى المسلمين.

الأعظمي 3188صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Eid prayer
Section
Women and menstruating women going out to the two Eids, except that menstruating women stay away from the prayer area
Numbering
Jami al-Kamil 3188 (2nd edition)
Azami 3188