Language:
كتاب اللباس
77  
Dress
(64)
Chapter: The clipping of nails
(64)
باب تَقْلِيمِ الأَظْفَارِ
Sahih al-Bukhari 5892

Narrated Nafi`:

Ibn `Umar said, The Prophet (ﷺ) said, 'Do the opposite of what the pagans do. Keep the beards and cut the moustaches short.' Whenever Ibn `Umar performed the Hajj or `Umra, he used to hold his beard with his hand and cut whatever remained outside his hold.

حَدَّثَنَا مُحَمَّدُ بْنُ مِنْهَالٍ، حَدَّثَنَا يَزِيدُ بْنُ زُرَيْعٍ، حَدَّثَنَا عُمَرُ بْنُ مُحَمَّدِ بْنِ زَيْدٍ، عَنْ نَافِعٍ، عَنِ ابْنِ عُمَرَ، عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ ‏ "‏ خَالِفُوا الْمُشْرِكِينَ، وَفِّرُوا اللِّحَى، وَأَحْفُوا الشَّوَارِبَ ‏"‏‏.‏ وَكَانَ ابْنُ عُمَرَ إِذَا حَجَّ أَوِ اعْتَمَرَ قَبَضَ عَلَى لِحْيَتِهِ، فَمَا فَضَلَ أَخَذَهُ‏.‏
Reference : Sahih al-Bukhari 5892
In-book reference : Book 77, Hadith 109
USC-MSA web (English) reference : Vol. 7, Book 72, Hadith 780
  (deprecated numbering scheme)
(65)
Chapter: To leave the beard
(65)
باب إِعْفَاءِ اللِّحَى عَفَوْا كَثُرُوا وَكَثُرَتْ أَمْوَالُهُمْ
Sahih al-Bukhari 5893

Narrated Ibn `Umar:

Allah's Messenger (ﷺ) said, "Cut the moustaches short and leave the beard (as it is).

حَدَّثَنِي مُحَمَّدٌ، أَخْبَرَنَا عَبْدَةُ، أَخْبَرَنَا عُبَيْدُ اللَّهِ بْنُ عُمَرَ، عَنْ نَافِعٍ، عَنِ ابْنِ عُمَرَ ـ رضى الله عنهما ـ قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏ "‏ انْهَكُوا الشَّوَارِبَ، وَأَعْفُوا اللِّحَى ‏"‏‏.‏
Reference : Sahih al-Bukhari 5893
In-book reference : Book 77, Hadith 110
USC-MSA web (English) reference : Vol. 7, Book 72, Hadith 781
  (deprecated numbering scheme)