Abdullah bin Umar reported,

The Messenger of Allah ﷺ shaved his head, and a group of his companions also shaved their heads, while others shortened their hair. Ibn Umar said that the Messenger of Allah ﷺ said, "May Allah have mercy on those who shave their heads," once or twice, then he added, "and on those who shorten their hair."

Tirmidhi 913

Sahih

حدثنا قتيبة حدثنا الليث عن نافع

عن ابن عمر قال

حلق رسول الله ﷺ وحلق طائفة من أصحابه وقصر بعضهم قال ابن عمر إن رسول الله ﷺ قال رحم الله المحلقين مرة أو مرتين ثم قال والمقصرين

الترمذي 913صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Hajj
Chapter
Shaving and trimming
Numbering
Darussalam 913
Tirmidhi 913