AHMAD 20799:
from Um ʿAṭiyyah al-Anṣāriyyah —
[Machine] The Messenger of Allah ﷺ used to command us to separate the menstruating women, the women with postnatal bleeding, and those with urinary incontinence. As for the menstruating women, they would stay away from the prayer area but would witness the goodness and the supplications with the Muslims.
أحمد ٢٠٧٩٩:
عن ام عطيه الانصاريه —
كَانَ رَسُولُ اللهِ ﷺ يَأْمُرُنَا أَنْ نُخْرِجَ الْعَوَاتِقَ وَالْحُيَّضَ وَذَوَاتِ الْخُدُورِ فَأَمَّا الْحُيَّضُ فَيَعْتَزِلْنَ الْمُصَلَّى وَيَشْهَدْنَ الْخَيْرَ وَالدَّعْوَةَ مَعَ الْمُسْلِمِينَ
hadithunlocked.com