Sahih Muslim – Hadith No : 6208

Ibn Abbas reported that the People of the Book used to let their hair fall (on their foreheads) and the polytheists used to part them on their heads, and Allah’s Messenger (may peace be upon him) liked to conform his behaviour to the People of the Book in matters in which he received no command (from God) ; so Allah’s Messenger (may peace be upon him) let fall his hair upon his forehead, and then he began to part it after this.

Hadith In Arabic Text :

حدثنا منصور بن أبي مزاحم، ومحمد بن جعفر بن زياد، قال منصور حدثنا وقال، ابن جعفر أخبرنا إبراهيم، – يعنيان ابن سعد – عن ابن شهاب، عن عبيد الله بن عبد، الله عن ابن عباس، قال كان أهل الكتاب يسدلون أشعارهم وكان المشركون يفرقون رءوسهم وكان رسول الله صلى الله عليه وسلم يحب موافقة أهل الكتاب فيما لم يؤمر به فسدل رسول الله صلى الله عليه وسلم ناصيته ثم فرق بعد ‏.‏

Chapter : The Book Pertaining to the Excellent Qualities of the Holy Prophet (may Peace be upon them) and His – كتاب الفضائل