It is narrated from Sayyiduna Ibn Umar (may Allah be pleased with them both) that he heard the Noble Prophet (peace and blessings be upon him) saying: When women ask you for permission to go to the mosque, do not stop them. Upon this, Bilal bin Abdullah said: By Allah, we will certainly stop them. So Sayyiduna Ibn Umar (may Allah be pleased with them both) turned towards him and rebuked him harshly.
Hadith Referenceمسند احمد / مسند المكثرين من الصحابة / 6252