3 So Israel was joined to Baal of Peor, and the anger of the Lord was aroused against Israel.
4 Then the Lord said to Moses, “Take all the leaders of the people and hang the offenders before the Lord, out in the sun, that the fierce anger of the Lord may turn away from Israel.”
5 So Moses said to the judges of Israel, “Every one of you kill his men who were joined to Baal of Peor.”
6 And indeed, one of the children of Israel came and presented 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 at the door of the tabernacle of meeting.
7 Now when Phinehas the son of Eleazar, the son of Aaron the priest, saw it, he rose 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 body. So the plague was stopped among the children of Israel.
9 And those who died in the plague were twenty-four thousand.