Abu Hurayrah met a woman who was wearing perfume and heading toward the mosque. He said to her, "Servant of the Almighty, where are you going?"She replied, "To the mosque."He asked, "And did you put on perfume for it?"She said, "Yes."He said, "I heard the Messenger of Allah ﷺ say, 'Any woman who wears perfume and then goes out to the mosque, no prayer of hers is accepted until she performs a complete bath.'"
حدثنا أبو بكر بن أبي شيبة حدثنا سفيان بن عيينة عن عاصم
أن أبا هريرة لقي امرأة متطيبة تريد المسجد فقال يا أمة الجبار أين تريدين قالت المسجد قال وله تطيبت قالت نعم قال فإني سمعت رسول الله ﷺ يقول أيما امرأة تطيبت ثم خرجت إلى المسجد لم تقبل لها صلاة حتى تغتسل
[Hasan] Reported by Abu Dawud, Combing the Hair, chapter on a woman wearing perfume when going out, 4174, from the hadith of Sufyan, with this wording.Asim is daif, but Abdul-Rahman bin Harith bin Abu Ubayd corroborated him, as found in Bayhaqi, 3/133, 134.