Numbers 25:4(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.

Dr. Kennicott remarks, that the Samaritan and Hebrew texts must be united to make the sense of this verse complete: "And the Lord said unto Moses, Speak unto all the heads of the people; and let them slay the men that were joined to Baal-peor; and hang them up before the Lord, against the sun," etc.