[Machine] The Messenger of Allah ﷺ said, "Whoever believes in Allah and the Last Day should not enter the bathhouse except wearing a waist wrap, and whoever believes in Allah and the Last Day from your wives should not enter the bathhouse." It is reported that this was mentioned to 'Umar ibn 'Abdul 'Aziz during his caliphate, so he wrote to Abu Bakr ibn Amr ibn Hazm, asking him to ask Muhammad ibn Thabit about his narration, as he is a trustworthy person. Abu Bakr ibn Amr ibn Hazm asked him, then he wrote to 'Umar ibn 'Abdul 'Aziz, who prohibited women from entering the bathhouse.
أَنَّ رَسُولَ اللهِ ﷺ قَالَ مَنْ كَانَ يُؤْمِنُ بِاللهِ وَالْيَوْمِ الْآخِرِ فَلَا يَدْخُلِ الْحَمَّامَ إِلَّا بِمِئْزَرٍ وَمَنْ كَانَ يُؤْمِنُ بِاللهِ وَالْيَوْمِ الْآخِرِ مِنْ نِسَائِكُمْ فَلَا تَدْخُلَنَّ الْحَمَّامَ قَالَ فَنُمِيَ ذَلِكَ إِلَى عُمَرَ بْنِ عَبْدِ الْعَزِيزِ ؓ فِي خِلَافَتِهِ فَكَتَبَ إِلَى أَبِي بَكْرِ بْنِ عَمْرِو بْنِ حَزْمٍ أَنْ سَلْ مُحَمَّدَ بْنَ ثَابِتٍ عَنْ حَدِيثِهِ فَإِنَّهُ رِضًا فَسَأَلَهُ ثُمَّ كَتَبَ إِلَى عُمَرَ بْنِ عَبْدِ الْعَزِيزِ فَمَنَعَ عُمَرُ النِّسَاءَ مِنَ الْحَمَّامِ