Shurayh ibn Ubayd said: Jubayr ibn Nufayr gave me a verdict about the bath because of sexual defilement that Thawban reported to them that they asked the Prophet ﷺ about it. He (the Prophet) replied: As regards man, he should undo the hair of his head and wash it until the water should reach the roots of the hair. But there is no harm if the woman does not undo it (her hair) and pour three handfuls of water over her head. (Using translation from Abū Dāʾūd 255)
"أما الرّجل فَلينْشُرْ رَأسَهُ، فَليَغْسِله، حتى يَبَلُغَ أصولَ الشعَرِ، وأما المرأةُ فلا عَلَيها ألَّا تَنْقُضَهُ، لِتَغْرِفْ على رَأسِها ثَلاثَ غَرَفَاتِ تكفيها" .