Numbers 25:4-9 - God's Punishment

4 And the LORD said unto Moses, Take all the heads of the people, and hang them up before the LORD in the sun, that the fierce anger of the LORD may be turned away from Israel.

5 And Moses said unto the judges of Israel, Slay you every one his men that were joined unto Baal of Peor.

6 And, behold, one of the children of Israel came and brought unto 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 door of the tabernacle of meeting. 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 stayed from the children of Israel. 9 And those that died in the plague were twenty and four thousand.