Halq or Taqsir
After stoning the ‘Uqbah Pillar and the sacrifice, the pilgrim moves on to the sixth of the obligatory rituals of hajj, and that is the shaving (halq) or cutting of the hair (taqsir).
The pilgrim is allowed to do halq or taqsir before the sacrifice once he has the sacrificial animal in his possession at the slaughter-house. Similarly, it is acceptable if he does the halq or the taqsir before the stoning or the sacrifice out of ignorance or forgetfulness. In either case, the restrictions of ihram will not be lifted until after doing the sacrifice.