The Messenger of Allah ﷺ shaved his head, and a group of his companions also shaved their heads while others shortened their hair. Abdullah said that the Messenger of Allah ﷺ said, "May Allah have mercy on those who shave their heads," once or twice, then he said, "And on those who shorten their hair."
و حدثنا يحيى بن يحيى ومحمد بن رمح قالا أخبرنا الليث ح و حدثنا قتيبة حدثنا ليث عن نافع أن
حلق رسول الله ﷺ وحلق طائفة من أصحابه وقصر بعضهم قال عبد الله إن رسول الله ﷺ قال رحم الله المحلقين مرة أو مرتين ثم قال والمقصرين