[Machine] The Messenger of Allah ﷺ shaved his head and some of his companions also shaved their heads, while others trimmed their hair. Ibn Umar reported that the Messenger of Allah ﷺ said, "May Allah have mercy on those who shave once or twice, and may He have mercy on those who trim their hair."
حَلَقَ رَسُولُ اللهِ ﷺ وَحَلَقَ طَائِفَةٌ مِنْ أَصْحَابِهِ وَقَصَّرَ بَعْضُهُمْ قَالَ ابْنُ عُمَرَ إِنَّ رَسُولَ اللهِ ﷺ قَالَ رَحِمَ اللهُ الْمُحَلِّقِينَ مَرَّةً أَوْ مَرَّتَيْنِ ثُمَّ قَالَ وَالْمُقَصِّرِينَ