The Prophet ﷺ said, "If the wife of anyone of you asks permission to go to the mosque, he should not forbid her." (Using translation from Bukhārī 5238)
قَالَ رَسُولُ اللهِ ﷺ «إِذَا اسْتَأْذَنَتِ امْرَأَةُ أَحَدِكُمْ إِلَى الْمَسْجِدِ فَلَا يَمْنَعْهَا»