When a woman wears perfume and passes by a gathering, she is such and such, that is, an adulteress
Abu Hurayrah (may Allah be pleased with him) narrates that the Messenger of Allah ﷺ said:
◈ لا تقبل صلوة لامرأة تطيبت لهذا المسجد حتى ترجع فتغتسل غسلها من الجنابة
“The prayer of a woman who wears perfume for the mosque is not accepted until she bathes as one bathes for janabah (ritual impurity).”
Reference: [Sahih] Abu Dawud, Kitab al-Tarajjul, Bab ma ja’a fi tib al-mar’ah tatatayyab lil-khuruj: 4173, al-Nasa’i, Kitab al-Zinah, Bab ightisal al-mar’ah min al-tib: 5127