It is narrated from Sayyiduna Ibn Umar (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) said: "Do not prevent the women from the mosques at night." Thereupon his son said: By Allah, we will certainly prevent them. At this he stretched out his hand, slapped him and said: "I narrate to you the hadith of the Messenger of Allah (peace and blessings be upon him), and you say this?"
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 13415