Musa bin Yasar narrates from Sayyiduna Abu Hurayrah (may Allah be pleased with him) that a woman passed by him and the scent of perfume was coming from her. He said: O servant of the Compeller (al-Jabbar)! Are you going to the mosque? She said: Yes. He said: Is it for this that you have applied perfume? She said: Yes. He said: Go back and take a bath, for I heard the Messenger of Allah (peace and blessings be upon him) say: "Any woman who goes to the mosque with the scent of perfume coming from her, Allah will not accept her prayer until she goes back and takes a bath."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الجمعة / 5973