The Prophet (peace and blessings be upon him) said: "Do not prevent your women from the mosques, though their houses are better for them."