Sayyiduna Abdullah bin Mas'ud (may Allah be pleased with him) says: A woman's praying in the inner part of her house is more virtuous than her praying in her outer room, and her praying in the outer room is more virtuous than her praying in her courtyard, and her praying in the courtyard is more virtuous than her praying anywhere else. Then he said: When a woman goes out (of her house), Satan peers at her.
Imam al-Tabarani recorded it in al-Mu'jam al-Kabir, and its narrators are the narrators of the Sahih.
Hadith Referenceمجمع الزوائد ومنبع الفوائد / كتاب الصلاة / 2109