ʿAbdullāh b. Mas’ūd – Allāh be pleased with him – said:

Women are but an ‘awrah (something private to be covered). A woman might leave her house without there being any problem with her, but the Shaytān seeks her out and says [to her], “You will not pass by anyone except that you will impress/please him.” A woman puts on her clothes and is asked where she is going, to which she replies, “To visit a sick person,” or “to attend a funeral”, or “to pray in the masjid”; but a woman never worships Allāh in the way she does when she worships Him in her house.

Al-Tabarānī. Graded sahīh by Shaykh Al-Albānī in Sahīh Al-Targhībi wa Al-Tarhīb Vol. 1 p84.