Sahih al-Bukhari #4411
Military Expeditions led by the Prophet (pbuh) (Al-Maghaazi) 64:433
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.