The Prophet ﷺ used to let his hair hang down over his forehead, while the polytheists used to part their hair, and the People of the Book used to let their hair hang down. The Prophet ﷺ liked to align with the People of the Book in matters concerning which he had not been given any specific command. Later, the Prophet ﷺ parted his hair.
حدثنا عبدان حدثنا عبد الله عن يونس عن الزهري قال أخبرني عبيد الله بن عبد الله بن عتبة
أن النبي ﷺ كان يسدل شعره وكان المشركون يفرقون رءوسهم وكان أهل الكتاب يسدلون رءوسهم وكان النبي ﷺ يحب موافقة أهل الكتاب فيما لم يؤمر فيه بشيء ثم فرق النبي ﷺ رأسه