TABARANI 17869:
from al-Miqdām b. Maʿdī Karib —
[Machine] The Prophet ﷺ said, "Indeed, you will open up horizons in which there are houses called 'bathrooms', it is forbidden for my nation to enter them." So, they said, "O Messenger of Allah, it removes impurity and cleans dirt." He said, "Indeed, it is permissible for the males of my nation to enter them, but it is forbidden for the females of my nation."
الطبراني ١٧٨٦٩:
عن المقدام بن معدي كرب —
قَالَ رَسُولُ اللهِ ﷺ «إِنَّكُمْ سَتَفْتَحُونَ آفَاقًا فِيهَا بُيُوتٌ يُقَالُ لَهَا الْحَمَّامَاتُ حَرَامٌ عَلَى أُمَّتِي دُخُولُهَا» فَقَالُوا يَا رَسُولَ اللهِ إِنَّهَا تُذْهِبُ الْوَصَبَ وَتُنَقِّي الدَّرَنَ قَالَ «فَإِنَّهَا حَلَالٌ لِذُكُورِ أُمَّتِي فِي الْأُزُرِ حَرَامٌ عَلَى إِنَاثِ أُمَّتِي»
hadithunlocked.com