Abdullah bin Abbas reported,

The Prophet ﷺ used to like to conform with the People of the Book in matters concerning which he had received no instruction. The People of the Book would let their hair hang down over their foreheads, while the polytheists would part their hair. So the Prophet ﷺ let his forelock hang down, then later he parted his hair.

Azami 15449

Sahih

عن ابن عباس قال

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

الأعظمي 15449صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Clothing and adornment
Chapter
Grooming the hair and using perfume
Section
Parting the hair of the head
Numbering
Jami al-Kamil 15449 (2nd edition)
Azami 15449