It is narrated from Sayyiduna Jabir (may Allah be pleased with him) that a man came and said that he had shaved his head before offering the sacrifice. The Prophet (peace and blessings be upon him) said: Now offer the sacrifice, there is no harm. Then another came and said, O Messenger of Allah! I had my head shaved before performing the stoning (rami). The Prophet (peace and blessings be upon him) again said: Now perform the stoning, there is no harm.