Abu Amr al-Shaybani narrates that he saw Sayyiduna Ibn Mas'ud (may Allah be pleased with him) sending the women out of the mosque on Friday, and he was saying: "Go out; going to your houses is better for you."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 9443