Sayyiduna Abdullah bin Umar (may Allah be pleased with them both) said that the Messenger of Allah (peace and blessings be upon him) said: "Do not prevent women from coming to the mosques, which is their right, when they ask your permission." At that Bilal said: By Allah, we will certainly prevent them. So Abdullah (may Allah be pleased with him) said: "O enemy of Allah! I say that the Messenger of Allah (peace and blessings be upon him) said this, and you say that we will certainly prevent them?"
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 13195