A woman met him, and the scent of perfume was wafting from her, with a trail stirring behind her dress. He said, "Servant of the Almighty, have you come from the mosque?"She replied, "Yes."He asked, "And did you put on perfume for it?"She said, "Yes."He said, "I heard my beloved Abu Qasim ﷺ say, 'No prayer is accepted from a woman who has perfumed herself for this mosque until she returns and performs the bath required for major ritual impurity.'"
حدثنا محمد بن كثير حدثنا سفيان عن عاصم بن عبيد الله عن عبيد مولى أبي رهم
لقيته امرأة وجد منها ريح الطيب ينفح ولذيلها إعصار فقال يا أمة الجبار جئت من المسجد قالت نعم قال وله تطيبت قالت نعم قال إني سمعت حبي أبا القاسم ﷺ يقول لا تقبل صلاة لامرأة تطيبت لهذا المسجد حتى ترجع فتغتسل غسلها من الجنابة
[Hasan] Reported by Ibn Majah in the Book of Tribulations, chapter on the temptation of women, hadith no. 4002, from the hadith of Sufyan, through this route. Asim bin Ubaydullah is daif, but he is corroborated by Abdul-Rahman bin Harith bin Abu Ubayd, as reported by Bayhaqi (3/133, 13), and the hadith has supporting narrations.