Then the LORD said to Moses, “Take all the leaders of the people and execute them in broad daylight before the LORD, so that His fierce anger may turn away from Israel.”
Jewish Publication Society of America Version (JPS1917) - Numbers 25:4 >And the LORD said unto Moses: 'Take all the chiefs of the people, and hang them up unto the LORD in face of the sun, that the fierce anger of the LORD may turn away from Israel.'