It is narrated from Sayyiduna Hubshi bin Junadah (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "O Allah, forgive those who shave their heads." It was said: O Messenger of Allah! And those who trim their hair? He ((peace and blessings be upon him)) said: "O Allah, forgive those who shave their heads." The third and fourth time he said: "And those who trim their hair as well."
Hadith Referenceالمعجم الكبير للطبراني / باب الحاء / 3496