Muslim women prohibited from praying in the musjid

It is reported from Abu Amr As-Shaybaani that he had seen Hadhrat Abdullah bin Mas’ood (radhiyallahu anhu) remove the women from the musjid on the day of Jumu’ah while instructing them in the following manner, “O women! Return to your homes for indeed remaining within your homes is better for you.”