حَدَّثَنَا مُوسَى بْنُ إِسْمَاعِيلَ، حَدَّثَنَا حَمَّادٌ، عَنْ أَيُّوبَ، وَيُونُسَ، وَحَبِيبٍ، وَيَحْيَى بْنِ عَتِيقٍ، وَهِشَامٍ، - فِي آخَرِينَ - عَنْ مُحَمَّدٍ، أَنَّ أُمَّ عَطِيَّةَ، قَالَتْ أَمَرَنَا رَسُولُ اللَّهِ صلى الله عليه وسلم أَنْ نُخْرِجَ ذَوَاتِ الْخُدُورِ يَوْمَ الْعِيدِ ‏.‏ قِيلَ فَالْحُيَّضُ قَالَ ‏"‏ لِيَشْهَدْنَ الْخَيْرَ وَدَعْوَةَ الْمُسْلِمِينَ ‏"‏ ‏.‏ قَالَ فَقَالَتِ امْرَأَةٌ يَا رَسُولَ اللَّهِ إِنْ لَمْ يَكُنْ لإِحْدَاهُنَّ ثَوْبٌ كَيْفَ تَصْنَعُ قَالَ ‏"‏ تُلْبِسُهَا صَاحِبَتُهَا طَائِفَةً مِنْ ثَوْبِهَا ‏"‏ ‏.‏
Translation
This tradition has also been narrated by Umm 'Atiyyah though a different chain of transmitters. She said

We were commanded to go out (for offering the 'Id prayer). She further said: The menstruating women stood behind the people and they uttered the takbir (Allah is most great) along with the people.