Números 25

10 And the Lord said to Moses,

11 Through Phinehas, and because of his passion for my honour, my wrath has been turned away from the children of Israel, so that I have not sent destruction on them all in my wrath.

12 So say to them that I will make with him an agreement of peace:

13 And by this agreement, he and his sons after him have the right to be priests for ever; because, by his care for the honour of his God, he took away the sin of the children of Israel.