Sunan Abi Dawud Book 2, Hadith 179
yes.
I tell you that the Messenger of Allah (May peace be upon him) said: Allow them; yet you say; we shall not allow them.
‘Abd Allah (b. 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.