Language:
كتاب النكاح
67  
Wedlock, Marriage (Nikaah)
(117)
Chapter: The permission taken by a woman from her husband to go to the mosque
(116)
باب اسْتِئْذَانِ الْمَرْأَةِ زَوْجَهَا فِي الْخُرُوجِ إِلَى الْمَسْجِدِ وَغَيْرِهِ
Sahih al-Bukhari 5238

Narrated Salim's father:

The Prophet (ﷺ) said, "If the wife of anyone of you asks permission to go to the mosque, he should not forbid her."

حَدَّثَنَا عَلِيُّ بْنُ عَبْدِ اللَّهِ، حَدَّثَنَا سُفْيَانُ، حَدَّثَنَا الزُّهْرِيُّ، عَنْ سَالِمٍ، عَنْ أَبِيهِ، عَنِ النَّبِيِّ صلى الله عليه وسلم ‏ "‏ إِذَا اسْتَأْذَنَتِ امْرَأَةُ أَحَدِكُمْ إِلَى الْمَسْجِدِ فَلاَ يَمْنَعْهَا ‏"‏‏.‏
Reference : Sahih al-Bukhari 5238
In-book reference : Book 67, Hadith 171
USC-MSA web (English) reference : Vol. 7, Book 62, Hadith 165
  (deprecated numbering scheme)