Umar's wife used to attend the dawn and evening prayers in congregation at the mosque. She was asked, "Why do you go out when you know that Umar dislikes this and feels jealous about it?"She replied, "What stops him from forbidding me?"The reply came, "What stops him is the saying of the Messenger of Allah ﷺ, 'Do not prevent the female servants of Allah from the mosques of Allah.'"
كانت امرأة لعمر تشهد صلاة الصبح والعشاء في الجماعة في المسجد. فقيل لها: لم تخرجين، وقد تعلمين أن عمر يكره ذلك ويغار؟ قالت: وما يمنعه أن ينهاني؟ قال: يمنعه قول رسول الله ﷺ: لا تمنعوا إماء الله مساجد الله.
Bukhari narrated it in the Book of Friday (900), from Yusuf bin Musa, who said, Abu Usama narrated to us, who said, Ubaydullah bin Umar narrated to us, from Nafi, from Ibn Umar, and he mentioned it. Muslim narrated it in the Book of Prayer (442/136), without the story of Umar, from the hadith of Ubaydullah with the same chain. This hadith could be counted among the musnad of Ibn Umar, just as it could be counted among the musnad of Umar bin Khattab. This is supported by what Imam Ahmad narrated (283), from Ismail bin Ibrahim, from Yahya bin Abu Ishaq, from Salim bin Abdullah, who said, "Umar was a jealous man. Whenever he went out to the prayer, Aatikah the daughter of Zayd would follow him. He disliked her going out, yet he also disliked preventing her. He used to relate that the Messenger of Allah ﷺ said, 'If your women ask your permission to go to the prayer, do not prevent them.'" However, this chain is disconnected, for Salim bin Abdullah bin Umar never met his grandfather Umar and never heard from him.Malik narrated it in the Book of the Qibla (14), from Yahya bin Saeed, from Aatikah bint Zayd bin Amr bin Nufayl, the wife of Umar bin Khattab, that she used to ask Umar bin Khattab's permission to go to the masjid. He would stay silent, so she would say, "By Allah, I will go out, unless you forbid me." And he never forbade her.