Sahih al-Bukhari 324
Ḥafṣah narrated: ‘We would forbid our young virgin girls from going out for the two ʿĪd gatherings. A woman came and stayed at the fortress of the Banū Khalaf. She narrated from her sister, whose husband had accompanied the Prophet (saw) in 12 battles, saying: “My sister was with him on six [of those occasions].” She added: “We would tend to the wounded and care for the sick.” My sister asked the Prophet (saw): “Is there any harm in one of us going out without a loose robe (jilbāb)?” He replied: “Her companion should cover her with her loose robe, and she should be present to witness the good actions and supplications of the believers.” When Umm ʿAṭiyyah (r.a) came, I asked her: “Did you hear [this from] the Prophet (saw)?” She replied: “May my father be sacrificed for him, yes.” She never mentioned the Prophet (saw) without saying ‘May my father be sacrificed for him’. [Umm ʿAṭiyyah continued:] “I heard him say: ‘Virgins and veiled women, or those virgins who are veiled, and menstruating women should come out and join in the good actions and supplications of the believers. The menstruating women should stay away from the place of Prayer’.” Ḥafṣah said: “I then asked: ‘Even menstruating women?’ She replied: ‘Are they not present at ʿArafah [during the Ḥajj] and at such-and-such places’?”’
Translation: Ahmadiyya Muslim Jamaat