Abdullah bin Umar reported,

The Messenger of Allah ﷺ said, "Do not prevent the female servants of Allah from praying in the mosque."A son of his said, "But we do prevent them."He became extremely angry and said, "I tell you something from the Messenger of Allah ﷺ and you say, 'We prevent them'?"

Ibn Majah 16

Sahih

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

عن ابن عمر

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

ابن ماجه 16صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Sunnah
Chapter
Exalting the hadith of the Messenger of Allah ﷺ and severity toward those who oppose it
Numbering
Darussalam 16
Ibn Majah 16