Hadithcore
Hadith #2106010

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. [Agreed upon].

وَعَنْ أُمِّ عَطِيَّةَ قَالَتْ: { أُمِرْنَا أَنْ نُخْرِجَ اَلْعَوَاتِقَ, وَالْحُيَّضَ فِي الْعِيدَيْنِ; يَشْهَدْنَ الْخَيْرَ وَدَعْوَةَ اَلْمُسْلِمِينَ, وَيَعْتَزِلُ اَلْحُيَّضُ اَلْمُصَلَّى } مُتَّفَقٌ عَلَيْهِ [1]‏ .‏

References2 variants
Sunnah.com reference
Book 2, Hadith 415
Arabic/English book reference
Book 2, Hadith 487