Hafsa bint Umar bin Khattab reported,

Whenever Umm Atiya mentioned the Messenger of Allah ﷺ, she would say, "May my father be sacrificed for him."I asked her, "Did you hear the Messenger of Allah ﷺ say such-and-such?"She replied, "Yes, may my father be sacrificed for him. He said, 'Let the young unmarried girls, the secluded maidens, and the menstruating women come out so they may witness the good and the supplication of the Muslims. But the menstruating women should keep away from the prayer area.'"

Nasai 390

Sahih

أخبرنا عمرو بن زرارة قال أنبأنا إسمعيل عن أيوب

عن حفصة قالت

كانت أم عطية لا تذكر رسول الله ﷺ إلا قالت بأبا فقلت أسمعت رسول الله ﷺ يقول كذا وكذا قالت نعم بأبا قال لتخرج العواتق وذوات الخدور والحيض فيشهدن الخير ودعوة المسلمين وتعتزل الحيض المصلى

النسائي 390صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Menstruation and istihadah
Chapter
Menstruating women attending the two Eids and the supplication of the Muslims
Numbering
Darussalam 390
Nasai 390