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.