Muwatta Malik 466
موطأ مالك#466Sahihحَدَّثَنِي يَحْيَى، عَنْ مَالِكٍ، أَنَّهُ بَلَغَهُ عَنْ عَبْدِ اللَّهِ بْنِ عُمَرَ، أَنَّهُ قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم " لاَ تَمْنَعُوا إِمَاءَ اللَّهِ مَسَاجِدَ اللَّهِ " .
Yahya related to me from Malik that he had heard that Abdullah ibn Umar said, "The Messenger of Allah, may Allah bless him and grant him peace, said, 'Do not forbid the female slaves of Allah from (going into) the mosques of Allah
Scholarly Authentication
The label above is the grade most of these scholars gave — one dissenting opinion no longer speaks for all of them. If any scholar calls a narration fabricated, that verdict is shown instead, whatever the others say. Each scholar's own wording:
Salim al-HilaliSahih
In-book reference: 14:12