Sahih al-Bukhari, Book 64, Hadith 433 (In-Book)

Narrated Ibn `Umar: During Hajjat-ul-Wada`, the Prophet and some of his companions got their heads shaved while some of his companions got their head-hair cut short.

حَدَّثَنَا عُبَيْدُ اللَّهِ بْنُ سَعِيدٍ، حَدَّثَنَا مُحَمَّدُ بْنُ بَكْرٍ، حَدَّثَنَا ابْنُ جُرَيْجٍ، أَخْبَرَنِي مُوسَى بْنُ عُقْبَةَ، عَنْ نَافِعٍ، أَخْبَرَهُ ابْنُ عُمَرَ، أَنَّ النَّبِيَّ صلى الله عليه وسلم حَلَقَ فِي حَجَّةِ الْوَدَاعِ وَأُنَاسٌ مِنْ أَصْحَابِهِ وَقَصَّرَ بَعْضُهُمْ‏.‏

sunnah.com