Abdullah bin Abbas reported,

The Messenger of Allah ﷺ used to let his hair hang down loosely. The polytheists used to part their hair, while the People of the Book let their hair hang down loosely, and he liked to align with the People of the Book in matters concerning which he had not been given any instruction. Later, the Messenger of Allah ﷺ parted his hair.

Ahmad 2605

Sahih

حدثنا علي بن إسحاق قال أخبرنا عبد الله وعتاب قال حدثنا عبد الله قال أخبرنا يونس عن الزهري قال حدثني عبيد الله

عن ابن عباس

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

أحمد 2605صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Abdullah bin Abbas bin Abdul-Muttalib
Numbering
Darussalam 2605
Ahmad 2605