The Prophet ﷺ said, "When your women ask your permission at night to go to the mosque, grant them permission."Shuba narrated it similarly from Amash, from Mujahid, from Ibn Umar, from the Prophet ﷺ.
حدثنا عبيد الله بن موسى عن حنظلة عن سالم بن عبد الله
عن النبي ﷺ قال إذا استأذنكم نساؤكم بالليل إلى المسجد فأذنوا لهن تابعه شعبة عن الأعمش عن مجاهد عن ابن عمر عن النبي ﷺ