Chapter 35: Combing the Hair (Kitab Al-Tarajjul)
Narrated Wa' il ibn Hujr: I came to the Prophet (ﷺ) and I had long hair. When the Messenger of Allah (ﷺ) saw me, he said: Evil, evil! He said: I then returned and cut them off. I then came to him in the morning. He said (to me): I did not intend to do evil to you. This is much better.
Sunan Abi Dawud 4190