Sunan an-Nasa'i #5066
The Book of Adornment 48:27
It was narrated that Wa'il bin Hujr said:
"I came to the Prophet [SAW] and I had long hair. He said: 'It is not good,' and I thought he meant me, so I went and cut my hair. He said: 'I did not mean you, but this is better.'"