عَنْ أَبِي سَعِيدٍ الْخُدْرِيِّ قَالَ: كَانَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ يخرج يَوْم الْفطر وَالْأَضْحَى إِلَى الْمُصَلَّى فَأَوَّلُ شَيْءٍ يَبْدَأُ بِهِ الصَّلَاةُ ثُمَّ يَنْصَرِفُ فَيَقُومُ مُقَابِلَ النَّاسِ وَالنَّاسُ جُلُوسٌ عَلَى صُفُوفِهِمْ فَيَعِظُهُمْ وَيُوصِيهِمْ وَيَأْمُرُهُمْ وَإِنْ كَانَ يُرِيدُ أَنْ يَقْطَعَ بَعْثًا قَطَعَهُ أَوْ يَأْمر بِشَيْء أَمر بِهِ ثمَّ ينْصَرف
Translation
Umm ‘Atiya said

We were commanded to bring out the men-struous women and those who were secluded on the day of the two festivals so that they might be present at the congregational prayer of the Muslims and their supplication, but the menstruous women had to keep at a distance from their place of prayer. A woman said,“Messenger of God, one of our number does not possess an outer garment." He replied, “Let her friend lend her hers." (Bukhari and Muslim.)