Abdullah bin Abbas reported,

The Messenger of Allah ﷺ used to let his hair fall loose over his forehead. The polytheists used to part their hair, while the People of the Book let theirs hang loose. The Messenger of Allah ﷺ liked to conform to the People of the Book in matters about which he had received no specific command. Later, the Messenger of Allah ﷺ parted his hair.

Azami 9440

Sahih

عن ابن عباس

أن رسول الله ﷺ كان يسدل شعره وكان المشركون يفرقون رؤوسهم، وكان أهل الكتاب يسدلون رؤوسهم، وكان رسول الله ﷺ يحب موافقة أهل الكتاب فيما لم يؤمر فيه بشيء، ثم فرق رسول الله ﷺ رأسه.

الأعظمي 9440صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Biography of the Prophet ﷺ
Chapter
Character of the Prophet ﷺ
Section
Letting the hair hang down and parting it by the Prophet ﷺ
Numbering
Jami al-Kamil 9440 (2nd edition)
Azami 9440