Abdullah ibn Umar, may Allah be pleased with them, said,
"The Messenger of Allah, may the peace and blessings of Allah be upon him, said,'Do not forbid the female slaves of Allah from (going to) the mosques of Allah'