Num 25:1-9 : 1 And Israel stayed in Shittim, and the people began to commit immorality with the daughters of Moab.
2 And they called the people to the sacrifices of their gods, and the people ate and bowed down to their gods.
3 And Israel joined himself to Baal of Peor, and the anger of the LORD was kindled against Israel.
4 And the LORD said to Moses, Take all the leaders of the people and hang them up before the LORD in the sunlight, that the fierce anger of the LORD may be turned away from Israel.
5 And Moses said to the judges of Israel, Slay each of his men who were joined to Baal of Peor.
6 And behold, one of the children of Israel came and brought to his brethren a Midianite woman in the sight of Moses, and in the sight of all the congregation of the children of Israel, who were weeping before the entrance of the tabernacle of the congregation.
7 And when Phinehas, the son of Eleazar, the son of Aaron the priest, saw it, he rose up from among the congregation and took a javelin in his hand;
8 And he went after the man of Israel into the tent, and thrust both of them through, the man of Israel, and the woman through her belly. So the plague was stopped among the children of Israel.
9 And those who died in the plague were twenty-four thousand.
10 And the LORD spoke to Moses, saying,
11 Phinehas, the son of Eleazar, the son of Aaron the priest, has turned my wrath away from the children of Israel, in that he was zealous for my sake among them, that I did not consume the children of Israel in my jealousy.
12 Therefore say, Behold, I give to him my covenant of peace:
13 And he shall have it, and his descendants after him, even the covenant of an everlasting priesthood; because he was zealous for his God, and made atonement for the children of Israel.
14 Now the name of the Israelite that was slain, even that was slain with the Midianite woman, was Zimri, the son of Salu, a leader of a chief house among the Simeonites.
15 And the name of the Midianite woman that was slain was Cozbi, the daughter of Zur; he was head over a people, and of a chief house in Midian.
16 And the LORD spoke to Moses, saying,
17 Harass the Midianites, and strike them:
18 For they harass you with their tricks, by which they have deceived you in the matter of Peor, and in the matter of Cozbi, the daughter of a leader of Midian, their sister, who was slain in the day of the plague for Peor's sake.