Numbers 25:8-13
English Standard Version
Chapter 25
8and went after the man of Israel into the chamber and pierced both of them, the man of Israel and the woman through her belly. Thus the plague on the people of Israel was stopped. 9Nevertheless, those who died by the plague were twenty-four thousand.
10And the Lord said to Moses,
11"Phinehas the son of Eleazar, son of Aaron the priest, has turned back my wrath from the people of Israel, in that he was jealous with my jealousy among them, so that I did not consume the people of Israel in my jealousy.
12Therefore say, ‘Behold, I give to him my covenant of peace,
13and it shall be to him and to his descendants after him the covenant of a perpetual priesthood, because he was jealous for his God and made atonement for the people of Israel.’"