ENOfficial
Ibn ‘Umar reported God’s Messenger as saying, “Do not prevent your women from coming to the mosques, but their houses are better for them.” Abu Dawud transmitted it.
Source: sunnah.com
Other translations
Arabic
عَنِ ابْنِ عُمَرَ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «لَا تَمْنَعُوا نِسَاءَكُمُ الْمَسَاجِدَ وَبُيُوتُهُنَّ خَيْرٌ لَهُنَّ» . رَوَاهُ أَبُو دَاوُدَ
sunnah.com