Sahih al-Bukhari, Book 25, Hadith 207 (Bukhari 1667)

Narrated `Abdullah:

The Prophet (ﷺ) and some of his companions got their heads shaved and some others got their hair cut short.