Ibn Mas'ud reported the Prophet as saying, “It is more excellent for a woman to pray in her house than in her courtyard, and more excellent for her to pray in her private chamber than in her house.”
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.