(Imām Bukhārī narrates): Ubaidullah bin Musa narrated to us from Hanzalah from Salim bin Abdullah from Ibn Umar, may Allāh be pleased with them both, from the Prophet ﷺ, he said:
When your women ask you for permission to go to the mosque at night, then give them permission.
Shu'bah has followed this hadeeth from al-A'mash from Mujahid from Ibn Umar from the Prophet ﷺ.
Reference: Sahih Al Bukhari 865