Abdullah bin Abbas reported,

The polytheists used to part their hair, while the People of the Book let their hair hang down. Yaqub added, "their hair." The Messenger of Allah ﷺ loved and was pleased to align with the People of the Book. Yaqub said, "in matters concerning which he had not been commanded." Ishaq said, "in what he had not been commanded about." So he let his forelock hang down, then later he parted it.

Ahmad 2209

Sahih

حدثنا إسحاق بن عيسى حدثني إبراهيم يعني ابن سعد عن الزهري ويعقوب حدثني أبي عن ابن شهاب عن عبيد الله بن عبد الله

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

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

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