Ibn Umar (may Allah be pleased with them both) said that the Messenger of Allah (peace and blessings be upon him) said: "Do not prevent your women from the mosques, but their houses are better for them."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلاة / 5359