It is narrated from Sayyiduna Ibn Umar (may Allah be pleased with them both) that the Prophet (peace and blessings be upon him) said: "Do not prevent women of the Ummah from coming to the mosques, but their houses are better for them."
Hadith Referenceمسند احمد / مسند المكثرين من الصحابة / 5471
Hadith Gradingحکم دارالسلام:حديث صحيح ، وهذا إسناد ضعيف ، حبيب بن أبي ثابت مدلس، وقد عنعن .