Sahih Muslim, Book 4, Hadith 150 (Muslim 981)

Salim narrated it from his father ('Abdullah b. Umar) that the Messenger of Allah (ﷺ) said:

When women ask permission for going to the mosque, do not prevent them.