The Prophet (ﷺ) said, "If the wife of anyone of you asks permission to go to the mosque, he should not forbid her."
Sahih al-Bukhari Book 67, Hadith 171