Narrated Abu Hurairah: Do not prevent the female servants of Allah from visiting the mosques of Allah, but they may go out (to the mosque) having no perfumed themselves.
Related hadith on this topic
Explanation & Benefits
Shaykh Umar Farooq Saeedi
565. Commentary:
This action is based on the desire of women; if they wish to come to the mosque with permission, they should not be prevented. The female Companions (sahabiyyat) used to come, but it is necessary for them to come veiled and in simple clothing. However, it is preferable that women perform the prayer at home while observing proper veiling. This is made clear by further ahadith that follow.
Source: Sunan Abu Dawood – Commentary by Shaykh Umar Farooq Saeedi, Page: 565
Shaykh Muhammad Ibrahim bin Basheer
Benefit:
As mentioned earlier: 950, this hadith proves that if women wish to go to the mosque for the purpose of performing prayer and they seek permission, then they should be granted permission. The present era is full of trials; when any woman wishes to go to the mosque, if possible, a mahram should accompany her, drop her off at the mosque, and then return. After the prayer concludes, he himself should go and bring her back home.
Source: Musnad al-Humaydi: Commentary by Muhammad Ibrahim bin Bashir, Page: 1007