Hadithcore
Mishkat al-Masabih, 1059

Ibn ‘Umar reported God’s Messenger as saying, “When the wife of any of you asks permission to enter the mosque he must not prevent her.” (Bukhari and Muslim.)

وَعَنِ ابْنِ عُمَرَ قَالَ: قَالَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «إِذَا اسْتَأْذَنَتِ امْرَأَة أحدكُم إِلَى الْمَسْجِد فَلَا يمْنَعهَا»

References1 variant
In-Book Reference
Book 4, Hadith 477