Abdullah bin Umar reported,

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.'"

Bukhari 900

Sahih

حدثنا يوسف بن موسى حدثنا أبو أسامة حدثنا عبيد الله بن عمر عن نافع

عن ابن عمر قال

كانت امرأة لعمر تشهد صلاة الصبح والعشاء في الجماعة في المسجد فقيل لها لم تخرجين وقد تعلمين أن عمر يكره ذلك ويغار قالت وما يمنعه أن ينهاني قال يمنعه قول رسول الله ﷺ لا تمنعوا إماء الله مساجد الله

البخاري 900صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Friday
Chapter
Is ghusl required of those who do not attend Friday prayer, such as women, children, and others
Numbering
Darussalam 900
Bukhari 900