The Prophet ﷺ said, "When the wife of any of you asks his permission to go to the mosque, he should not prevent her."
حدثنا سفيان عن الزهري
عن النبي ﷺ إذا استأذنت أحدكم امرأته إلى المسجد فلا يمنعها
Its isnad is sahih, and it is an abridgment of 4522.