Allah commands Muslims to eat of the animals slaughtered in sacrifice: “…eat you thereof and feed such as (beg not but) live in contentment and such as beg with due humility.” (Qur’an 22.36)
Apparently this commandment applies to both the obligatory and supererogatory sacrifice. There is some disagreement among the jurists on this subject. Abu Hanifah and Ahmad are of the opinion that one may eat of the sacrifice made for Hajj Tamattu’ (In which Hajj and ‘Umrah are combined with a break) or Hajj Qiran (In which Hajj and ‘Umrah are combined without a break) or one that is offered voluntarily, but one may not eat of any other sacrifice.
Malik holds that one may eat of an animal sacrificed as a penalty for violating one’s previous Hajj, or that which is sacrificed for missing one’s Hajj, or a sacrifice offered by one performing Hajj Tamattu ‘, or any other animal offered in sacrifice, except a sacrifice offered as an atonement for killing a game or one that is vowed for the poor, and that which is offered voluntarily except when (it is feared) the animal will be spoiled before arriving at its place of slaughter.
Ash-Shafi’i holds that one is not permitted to eat of an obligatory sacrifice, e.g. an obligatory sacrifice offered in penalty, or a sacrifice made for killing a game, or one that is offered for spoiling one’s Hajj, or one offered for Hajj Tamattu’ or Hajj Qiran, and likewise that which one has vowed. In case of a voluntary sacrifice, however, one may eat thereof himself as well as give it to others.