Do not prevent the female servants of Allah from visiting the mosques of Allah, but they may go out (to the mosque) having no perfumed themselves. (Using translation from Abū Dāʾūd 565)
قَالَ رَسُولُ اللهِ ﷺ «لَا تَمْنَعُوا إِمَاءَ اللهِ الْمَسَاجِدَ وَلْيَخْرُجْنَ تَفِلَاتٍ»