It is narrated from Imam al-Hasan al-Basri and Imam Muhammad bin Sirin (may Allah have mercy on them both) that "they both (out of abstinence and piety and to guard their private parts) would not enter the hammam (public bathhouse)."
The chain of this report is sahih (authentic), and Imam Ibn Abi Shaybah narrated it in his work 'al-Musannaf' (177).
Hadith Referenceالمطالب العالية بزوائد المسانيد الثمانية / كتاب الغسل / 177
Hadith Gradingمحدثین:إسناده صحيح
Hadith Takhrij«حکم الحدیث المطالب العالیہ محققاً تنسیق د. سعد بن ناصر بن عبد العزيز الشَّثري- مکتبہ شاملہ :إسناده صحيح. » «أورده ابن حجر فى "المطالب العالية"، 177، وأخرجه ابن أبى شيبة فى «مصنفه» برقم: 1170، 1185»