Abdullah bin Abbas reported,

The Prophet ﷺ used to prefer agreeing with the People of the Book in matters concerning which he had not been given any specific instruction. The People of the Book would let their hair fall straight down, while the polytheists would part their hair. So the Prophet ﷺ let his forelock fall straight, but later he parted it.

Bukhari 5917

Sahih

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

عن ابن عباس رضي الله عنهما قال

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

البخاري 5917صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Clothing
Chapter
Difference
Numbering
Darussalam 5917
Bukhari 5917