The Messenger of Allah ﷺ said, "Do not prevent the female servants of Allah from attending the mosques of Allah, but let them go out without perfume."
حدثنا موسى بن إسمعيل حدثنا حماد عن محمد بن عمرو عن أبي سلمة
أن رسول الله ﷺ قال لا تمنعوا إماء الله مساجد الله ولكن ليخرجن وهن تفلات
Graded, its chain of transmission is hasan. Ahmad narrated it, 2/438, from the hadith of Muhammad bin Amr with this chain, and Ibn Khuzayma graded it sahih, no. 1679, as did Ibn Hibban, no. 327. Salama bin Safwan Zarqi narrated it from Abu Salama with this chain, in Bukhari's Tarikh al-Kabir, 4/79.