كتاب الصلاة
4  
The Book of Prayers
(30)
Chapter: Women Going Out To The Masjid So Long As No Fitnah Results From That; and They Should Not Go Out Wearing Perfume
(30)
باب خُرُوجِ النِّسَاءِ إِلَى الْمَسَاجِدِ إِذَا لَمْ يَتَرَتَّبْ عَلَيْهِ فِتْنَةٌ وَأَنَّهَا لاَ تَخْرُجُ مُطَيَّبَةً
Sahih Muslim 442 g

Ibn 'Umar reported:

Grant permission to women for going to the mosque in the night. His son who was called Waqid said: Then they would make mischief. He (the narrator) said: He thumped his (son's) chest and said: I am narrating to you the hadith of the Messenger of Allah (ﷺ), and you say: No!
حَدَّثَنَا مُحَمَّدُ بْنُ حَاتِمٍ، وَابْنُ، رَافِعٍ قَالاَ حَدَّثَنَا شَبَابَةُ، حَدَّثَنِي وَرْقَاءُ، عَنْ عَمْرٍو، عَنْ مُجَاهِدٍ، عَنِ ابْنِ عُمَرَ، قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏ "‏ ائْذَنُوا لِلنِّسَاءِ بِاللَّيْلِ إِلَى الْمَسَاجِدِ ‏"‏ ‏.‏ فَقَالَ ابْنٌ لَهُ يُقَالُ لَهُ وَاقِدٌ إِذًا يَتَّخِذْنَهُ دَغَلاً ‏.‏ قَالَ فَضَرَبَ فِي صَدْرِهِ وَقَالَ أُحَدِّثُكَ عَنْ رَسُولِ اللَّهِ صلى الله عليه وسلم وَتَقُولُ لاَ ‏.‏
Reference : Sahih Muslim 442g
In-book reference : Book 4, Hadith 156
USC-MSA web (English) reference : Book 4, Hadith 890
  (deprecated numbering scheme)