[Machine] The Prophet ﷺ forbade both men and women from entering the bathrooms. However, he allowed men to enter while wearing clothes, but he did not allow women. This is stated in the narration of Al-Muqri and in the narration of Ar-Rawdabari.
النَّبِيَّ ﷺ نَهَى الرِّجَالَ وَالنِّسَاءَ عَنْ دُخُولِ الْحَمَّامَاتِ ثُمَّ رَخَّصَ لِلرِّجَالِ أَنْ يَدْخُلُوا وَعَلَيْهِمُ الْأُزُرُ وَلَمْ يُرَخِّصْ لِلنِّسَاءِ لَفْظُ حَدِيثِ الْمُقْرِئِ وَفِي رِوَايَةِ الرُّوذْبَارِيِّ نَهَى عَنْ دُخُولِ الْحَمَّامَاتِ ثُمَّ رَخَّصَ لِلرِّجَالِ أَنْ يَدْخُلُوهَا فِي الْمَيَازِرِ