Abdullah bin Umar reported,

The Prophet ﷺ shaved his head, as did a group of his companions, while others trimmed their hair.

Azami 13332

Sahih

عن ابن عمر قال

حلق النبي ﷺ وطائفة من أصحابه، وقصر بعضهم.

الأعظمي 13332صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Tafsir of the great Quran
Chapter
Tafsir of Surah Fath
Section
His saying, "Allah has certainly fulfilled for His Messenger the vision in truth. You will surely enter Masjid al-Haram, if Allah wills, in safety, with your heads shaved and hair shortened, not fearing. He knew what you did not know, and He made besides that a near victory."
Numbering
Jami al-Kamil 13332 (2nd edition)
Azami 13332