It is narrated from Mawla Abi Zahm, may Allah have mercy on him, that Sayyiduna Abu Hurairah, may Allah be pleased with him, met a woman on the road. Sayyiduna Abu Hurairah, may Allah be pleased with him, asked her: "Where are you going?" She replied: "To the mosque." Sayyiduna Abu Hurairah, may Allah be pleased with him, said: "You have set out for the mosque and have also applied perfume?" She said: "Yes." Sayyiduna Abu Hurairah, may Allah be pleased with him, said: "I heard the Noble Prophet ﷺ say: 'Any woman who applies perfume and then leaves her house for the mosque, her prayer and her fast are not accepted until she returns home and performs a ritual bath (ghusl) as for major impurity.'"
Hadith Referenceالسنن المأثورة / باب ما جاء في حضور النساء مساجد الجماعة / 179
Hadith Takhrijسنن ابی داؤد الترجل، باب ماجاء في المرأة تطيب للخروج، رقم : 4174 وقال الالبانى ،صحیح سنن ابن ماجه الفتن، باب فتنة النساء، رقم : 4002 وقال الالبانی: حسن صحیح ۔