Nafi' narrates from Sayyiduna Abdullah bin Umar (may Allah be pleased with them both) that the wife of Sayyiduna Umar (may Allah be pleased with him) used to attend the Fajr and Isha prayers in the mosque. It was said to her: Do you not know that Sayyiduna Umar (may Allah be pleased with him) dislikes this? Why then do you come? She said: What prevents him from forbidding me? She was told: What prevents him is this saying of the Prophet (peace and blessings be upon him), that he (peace and blessings be upon him) said: "Do not prevent the female servants of Allah from the mosques."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلاة / 5370