Numbers 25
2And they called the people unto the sacrifices of their gods: and the people did eat, and bowed themselves down to their gods.
5And Moses said unto the judges of Israel, Slay ye every one his men that have been joined unto Baal-peor.
6And, behold, one of the children of Israel came, and brought unto his brethren a Midianitish woman, before the eyes of Moses, and before the eyes of all the congregation of the children of Israel, and these were weeping by the door of the tabernacle of the congregation.
9And those that died in the plague were twenty and four thousand.
10And the Lord spoke unto Moses, saying,
11Phinehas, the son of Elazar, the son of Aaron the priest, hath turned away my wrath from the children of Israel, while he was zealous in my stead in the midst of them, that I consumed not the children of Israel in my indignation.
12Therefore say, Behold, I give unto him my covenant of peace;
13And it shall be unto him and unto his seed after him a covenant of an everlasting priesthood; because he was zealous for his God, and made an atonement for the children of Israel.
16And the Lord spoke unto Moses, saying,
17Attack the Midianites and smite them;
18For they are enemies unto you with their wiles, wherewith they have beguiled you in the matter of Peor, and in the matter of Cozbi, the daughter of a prince of Midian, their sister, who was slain on the day of the plague for the sake of Peor.