Yahya related to me from Malik that he had heard that Abdullah ibn Umar said, "The Messenger of Allah ﷺ said, 'Do not forbid the female slaves of Allah from (going into) the mosques of Allah.' "
أَنَّهُ قَالَ قَالَ رَسُولُ اللَّهِ ﷺ لاَ تَمْنَعُوا إِمَاءَ اللَّهِ مَسَاجِدَ اللَّهِ