Salim (may Allah have mercy on him) narrates from his father (Sayyiduna Abdullah bin Umar, may Allah be pleased with them both) that the Prophet (peace and blessings be upon him) said: "When the wife of any of you asks permission to go to the mosque, he should not prevent her."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلاة / 5366
Al-Zuhri (may Allah have mercy on him) also narrated a similar hadith, but he used different wording, saying that the Messenger of Allah (peace and blessings be upon him) said.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلاة / 5367
Sayyiduna Ibn Umar (may Allah be pleased with them both) said that the Messenger of Allah (peace and blessings be upon him) said: "When your women ask your permission to go to the mosque, or he said: to the mosques, then give them permission."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلاة / 5368
Ibn Umar (may Allah be pleased with them both) said that the Prophet (peace and blessings be upon him) said: "Do not prevent your women from the mosques at night." His son said: By Allah, we will certainly prevent them, otherwise they will make it a means of deception.
Ibn Umar (may Allah be pleased with them both) slapped him and said: I am narrating to you from the Prophet (peace and blessings be upon him), and you say this!
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلاة / 5369
Nafi' narrates from Sayyiduna Abdullah bin Umar (may Allah be pleased with them both) that the wife of Sayyiduna Umar (may Allah be pleased with him) used to attend the Fajr and Isha prayers in the mosque. It was said to her: Do you not know that Sayyiduna Umar (may Allah be pleased with him) dislikes this? Why then do you come? She said: What prevents him from forbidding me? She was told: What prevents him is this saying of the Prophet (peace and blessings be upon him), that he (peace and blessings be upon him) said: "Do not prevent the female servants of Allah from the mosques."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلاة / 5370
Abd al-Hamid bin al-Mundhir bin Abi Humayd al-Sa'idi narrates from his father, who narrates from his grandmother (may Allah be pleased with her), that she said: "O Messenger of Allah (peace and blessings be upon him), we love to pray with you (peace and blessings be upon him), but our husbands prevent us." The Prophet (peace and blessings be upon him) said: "Your prayer in your rooms is better than your prayer in your courtyards, and your prayer in your courtyards is better than your prayer in the congregational mosque."
The Shaykh said: The command not to prevent them is one of recommendation, not an obligation or a duty. This is the view of the people of knowledge.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلاة / 5371
Hadith Gradingمحدثین:حسن لغيرهٖ
Hadith Takhrij«حسن لغيرهٖ۔ الطبراني في الكبير 356»
Amrah bint Abd al-Rahman narrates from Sayyidah Aishah (may Allah be pleased with her): If the Messenger of Allah (peace and blessings be upon him) had seen what the women began to do after him, he would certainly have prevented them from the mosques, just as the women of Bani Isra'il were prevented. We said to Amrah: Were the women of Bani Isra'il prevented from it? She said: Yes.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلاة / 5372