It was narrated that Hafsah said: “Umm ‘Atiyyah would never
mention the Messenger of Allah صلی اللہ علیہ وآلہ وسلم without saying: ‘May my father be ransomed for him.’ I said: ‘Did you
hear the Messenger of Allah صلی اللہ علیہ وآلہ وسلم say such-and-such?’ And she said: ‘Yes, may my father be ransomed for him.’ He said: Let the adolescent girls, women in seclusion and menstruating women come out and attend the ‘Eid and supplications of the Muslims, but let the menstruating women keep away from the prayer place.”(Sahih)