‏ Numbers 25:3-9

3So Israel yoked himself to Baal of Peor. And the anger of the Lord was kindled against Israel. 4And the Lord said to Moses, aTake all the chiefs of the people and bhang
Or impale
them in the sun before the Lord, dthat the fierce anger of the Lord may turn away from Israel.”
5And Moses said to ethe judges of Israel, fEach of you kill those of his men who have yoked themselves to Baal of Peor.”

6And behold, one of the people of Israel came and brought a Midianite woman to his family, in the sight of Moses and in the sight of the whole congregation of the people of Israel, while they were gweeping in the entrance of the tent of meeting. 7 hWhen Phinehas ithe son of Eleazar, son of Aaron the priest, saw it, he rose and left the congregation and took a spear in his hand 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, jthose who died by the plague were twenty-four thousand.

Copyright information for ESV