A wife of Umar used to attend the dawn and night prayers in congregation at the mosque. Someone said to her, "Why do you go out, when you know that Umar dislikes this and feels jealous?"She replied, "What prevents him from forbidding me?"He said, "What prevents him is the saying of the Messenger of Allah ﷺ, 'Do not prevent the female servants of Allah from the mosques of Allah.'"
حدثنا يوسف بن موسى حدثنا أبو أسامة حدثنا عبيد الله بن عمر عن نافع
كانت امرأة لعمر تشهد صلاة الصبح والعشاء في الجماعة في المسجد فقيل لها لم تخرجين وقد تعلمين أن عمر يكره ذلك ويغار قالت وما يمنعه أن ينهاني قال يمنعه قول رسول الله ﷺ لا تمنعوا إماء الله مساجد الله