The Book of Prayer
Bulugh al-Maram #590
كتاب الصلاة
وَعَنْ أُمِّ عَطِيَّةَ قَالَتْ: «أُمِرْنَا أَنْ نُخْرِجَ اَلْعَوَاتِقَ, وَالْحُيَّضَ فِي الْعِيدَيْنِ; يَشْهَدْنَ الْخَيْرَ وَدَعْوَةَ اَلْمُسْلِمِينَ, وَيَعْتَزِلُ اَلْحُيَّضُ اَلْمُصَلَّى» مُتَّفَقٌ عَلَيْهِ
Narrated Umm 'Atiyah (RA):
We were commanded to bring out on 'Eidul-Fitr and 'Eidul-Adha, the young women and the menstruating women to participate in the goodness and supplications of the Muslims. However, the menstruating women would refrain from the (actual) place of prayer.
وَعَنْ أُمِّ عَطِيَّةَ قَالَتْ: "أُمِرْنَا أَنْ نُخْرِجَ اَلْعَوَاتِقَ, وَالْحُيَّضَ فِي الْعِيدَيْنِ; يَشْهَدْنَ الْخَيْرَ وَدَعْوَةَ اَلْمُسْلِمِينَ, وَيَعْتَزِلُ اَلْحُيَّضُ اَلْمُصَلَّى" مُتَّفَقٌ عَلَيْهِ
We were commanded to bring out on 'Eidul-Fitr and 'Eidul-Adha, the young women and the menstruating women to participate in the goodness and supplications of the Muslims. However, the menstruating women would refrain from the (actual) place of prayer.
— Bulugh al-Maram, Hadith 590