Numbers 25:4 in the King James Version
And the LORD said unto Moses, Take all the heads of the people, and hang them up before the LORD against the sun, that the fierce anger of the LORD may be turned away from Israel.
Context
3 Israel joined himself to Baal Peor, and the LORD’s anger burned against Israel.
4 The LORD said to Moses, “Take all the chiefs of the people, and hang them up to the LORD before the sun, that the fierce anger of the LORD may turn away from Israel.”
5 Moses said to the judges of Israel, “Everyone kill his men who have joined themselves to Baal Peor.”