The Messenger of Allah ﷺ said, "Do not prevent the female servants of Allah from praying in the mosque."
حدثنا عبد الرزاق حدثنا معمر عن الزهري عن سالم عن ابن عمر و عن أيوب عن نافع
قال رسول الله ﷺ لا تمنعوا إماء الله أن يصلين في المسجد
This isnad is sahih, and it is an abridgment of 6318.