It is narrated from Sayyiduna Ibn Abbas (may Allah be pleased with them both) that the Prophet (peace and blessings be upon him) passed by a woman who had let her hair hang loose - and the narrator mentioned the complete hadith.
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 11824