"And the LORD called it Peace" (Judges 6:24). Rav Hamnuna said in the name of Ulla: It is forbidden for a person to give a greeting of peace to his fellow in the bathhouse, because it is said, "And the LORD called it Peace."
Why One May Not Offer a Greeting of Peace in the Bathhouse
Yalkut Shimoni on Nach 62:2
ויקרא לו ה' שלום. אמר רב המנונא משמיה דעולא אסור לאדם שיתן שלום לחברו בבית המרחץ משום שנאמר ויקרא לו ה' שלום: