Hadithcore
Bulugh al-Maram, 122

Narrated `A'ishah (RAA):

Allah's messenger (ﷺ) said: "It is not permitted for a menstruating woman or one who is junub (sexually impure) to stay in the mosque." Related by Abu Dawud and Ibn Khuzaimah graded it as Sahih

وَعَنْ عَائِشَةَ رَضِيَ اَللَّهُ عَنْهَا قَالَتْ: قَالَ رَسُولُ اَللَّهِ ‏- صلى الله عليه وسلم ‏-{ إِنِّي لَا أُحِلُّ اَلْمَسْجِدَ لِحَائِضٍ وَلَا جُنُبٌ } رَوَاهُ أَبُو دَاوُدَ, وَصَحَّحَهُ اِبْنُ خُزَيْمَة َ [1]‏ .‏

References2 variants
In-Book Reference
Book 1, Hadith 149
English Reference
Book 1, Hadith 132