Sahih Muslim 259c
Sahih Muslim · Book 2: The Book of Purification · The characteristics of the fitrah
Ibn Umar said:
حَدَّثَنَا سَهْلُ بْنُ عُثْمَانَ ، حَدَّثَنَا يَزِيدُ بْنُ زُرَيْعٍ ، عَنْ عُمَرَ بْنِ مُحَمَّدٍ ، حَدَّثَنَا نَافِعٌ ، عَنِ ابْنِ عُمَرَ ، قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم " خَالِفُوا الْمُشْرِكِينَ أَحْفُوا الشَّوَارِبَ وَأَوْفُوا اللِّحَى " .
The Messenger of Allah (may peace be opon him) said: Act against the polytheists, trim closely the moustache and grow beard.