Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) narrates: It was asked from the Prophet Muhammad (peace be upon him) about a person who shaves his head before sacrificing (the animal), or who sacrifices the animal before throwing (the pebbles). The Prophet Muhammad (peace be upon him) kept saying: There is no sin in it.