Sahih Bukhari | Volume 5 | Hadith Number 695

Narrated by 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.