“The Messenger of Allah (ﷺ)
said: ‘Bring out the women who have attained puberty and those who
are in seclusion so that they may attend the ‘Eid prayer and (join
in) the supplication of the Muslims. But let the women who are
menstruating avoid the prayer place.”
Sunan Ibn Majah Book 5, Hadith 506