It is narrated from Sayyiduna Abdullah bin Umar (may Allah be pleased with them) that the Messenger of Allah (peace and blessings be upon him) said: "When any of your wives seeks permission to go to the mosque, he should not prevent her."
Hadith Referenceالسنن المأثورة / باب ما جاء في حضور النساء مساجد الجماعة / 178
Hadith Takhrijصحیح بخاری، النكاح، باب استئذان المرأة زوجها في الخروج الخ، رقم : 873 ، صحیح مسلم، الصلاة، باب خروج النساء الى المساجد رقم : 442 ۔