'Abdullah reported that Allah's Messenger (ﷺ) got his head shaved (after slaughtering the sacrificial animal on the 10th of Dhu'l-Hijja), and so did a group of Companions, while some of them got their hair clipped. Abdullah said
Allah's Messenger (may peace'be upon him) observed once or twice:" May Allah have mercy upon those who get their heads shaved." And he also said:" Upon those too who got their hair clipped."
Abdullah b. Umar (Allah be pleased with him) reported Allah's Messenger (ﷺ) as having observed
O Allah, have mercy upon those who get their heads shaved. They (the Companions) said: Messenger of Allah, (what about those) who have got their hair clipped? He said: O Allah, have mercy upon those who have got their heads shaved. They (again) said: Allah's Messenger, (what about those) who have got their hair clipped? Thereupon he said: (O Allah, have mercy upon those) who have got their hair clipped.
Ibn 'Umar reported that Allah's Messenger (ﷺ) said
May Allah have mercy upon those who have got their heads shaved. They said: Messenger of Allah, (what about) those who got their hair clipped? He said: May Allah have mercy upon those who have got their heads shaved. They said: Messenger of Allah, (what about those who have got their hair clipped)? He said: May Allah have mercy upon those who got their hair shaved. They said: Messenger of Allah, (what about) those who got their hair clipped? He said: (O Allah, have mercy upon) those who got their hair clipped.
Ubaidullah reported this hadith with the same chain of transmitters and (it is said) that it was on the fourth turn that he (the Holy Prophet) said
(May Allah have mercy upon) those who got their hair clipped."
Abu Huraira reported Allah's Messenger (ﷺ) as having said
O Allah, grant pardon to those who got their heads shaved. They (Companions of the Holy Prophet) said: Messenger of Allah, (what about those) who get their hair cut? He said: O Allah, grant pardon to those who get their heads shaved. They said: Messenger of Allah, (what about those) who got their hair clipped? He said: O Allah, grant pardon to those who get their heads shaved. They said: Messenger of Allah, (what about those) who get their hair clipped? He said: (O Allah, grant pardon to) those who get their hair clipped.
A hadith like this is narrated on the authority of Abu Huraira.
Yahya b. al-Husain reported on the authority of his grandfather that Allah's Apostle (ﷺ) invoked blessing on the occasion of the Farewell Pilgrimage three times for those who got their heads shaved and once for those who got their hair clipped. In the narration transmitted by Waki' there is no mention of the Farewell Pilgrimage.
Ibn Umar reported that Allah's Messenger (ﷺ) got his head shaved on the occasion of the Farewell Pilgrimage.