It is narrated from Sayyidah Aishah (may Allah be pleased with her) that the Messenger of Allah (peace and blessings be upon him) forbade entering the bathhouses, then permitted men to enter them wearing waist-wrappers.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلاة / 3227