Abdullah bin Umar reported,

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

Azami 2396

Sahih

عن ابن عمر قال

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

الأعظمي 2396صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Prayer
Chapter
Congregational prayer
Section
Women going out to attend congregational prayers in the mosques
Numbering
Jami al-Kamil 2396 (2nd edition)
Azami 2396