It is narrated from Sayyiduna Ibn Umar (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) said: "Do not prevent the female servants of Allah from (coming to) the mosques of Allah."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 13293