It is narrated from Sayyiduna Abu Ayyub al-Ansari (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Whoever believes in Allah and the Last Day should honour his neighbour; whoever believes in Allah and the Last Day should honour his guest; whoever believes in Allah and the Last Day should speak good or else remain silent; and whoever among your women believes in Allah and the Last Day must never enter the (public) bathhouses."
(The narrator says:) I conveyed this hadith to Umar bin Abd al-Aziz (may Allah have mercy on him) during his caliphate, and he wrote to Abu Bakr bin Muhammad bin Amr bin Hazm (may Allah have mercy on him) to ask Muhammad bin Thabit (may Allah have mercy on him) about this hadith of his, for he is an approved and reliable person. So he asked him and wrote (in reply) to Umar bin Abd al-Aziz (may Allah have mercy on him), whereupon he forbade women from going to the bathhouse.
I (al-Busiri) say: Imam al-Tabarani (may Allah have mercy on him) transmitted it in al-Mu'jam al-Kabir and al-Mu'jam al-Awsat from the narration of Abdullah bin Salih, the scribe of al-Layth, but Umar bin Abd al-Aziz (may Allah have mercy on him) is not mentioned in his version.
Imam Ibn Hibban (may Allah have mercy on him) also narrated it in full in his Sahih through the chain of Yahya bin Ma'in (may Allah have mercy on him).
Imam al-Hakim (may Allah have mercy on him) transmitted it in al-Mustadrak and graded it sahih.