Numbers 25:4

Then the LORD said to Moses, "Take all the leaders of the people and hang the offenders before the LORD, out in the sun, that the fierce anger of the LORD may turn away from Israel."