Hadithcore
Mishkat al-Masabih, 1064

Abu Huraira said that he heard his friend Abul Qasim (. i.e. the Prophet) say, “The prayer of a woman who has perfumed herself to go to the mosque is not accepted till she bathes as she would for sexual defilement.” Abu Dawud transmitted it, and Ahmad and Nasa’i transmitted something similar.

وَعَنْ أَبِي هُرَيْرَةَ قَالَ: إِنِّي سَمِعْتُ حِبِّي أَبَا الْقَاسِمِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ يَقُولُ: «لَا تُقْبَلُ صَلَاةُ امْرَأَةٍ تَطَيَّبَتْ لِلْمَسْجِدِ حَتَّى تَغْتَسِلَ غُسْلَهَا مِنَ الْجَنَابَةِ» . رَوَاهُ أَبُو دَاوُدَ وروى أَحْمد وَالنَّسَائِيّ نَحوه

References1 variant
In-Book Reference
Book 4, Hadith 482