Hadith 5597
Sayyiduna Abu Ayyub Ansari (may Allah be pleased with him) narrates this statement of the Noble Prophet (peace and blessings of Allah be upon him): "Whoever believes in Allah and the Last Day should honor his neighbor. Whoever believes in Allah and the Last Day should enter the bathhouse wearing a lower garment. Whoever believes in Allah and the Last Day should speak good or remain silent. And among your women, whoever believes in Allah and the Last Day should not enter the bathhouse."
The narrator states: I wrote this and sent it to Umar bin Abdul Aziz during his caliphate, so he wrote a letter to Abu Bakr bin Muhammad to inquire from Muhammad bin Thabit about the narrations he transmitted, because he is a trustworthy narrator. Abu Bakr bin Muhammad inquired from him about this, then wrote to Umar bin Abdul Aziz, so Umar bin Abdul Aziz imposed a ban on women entering the bathhouse.