And Israel abode in Shittim, and the people began to commit whoredom with the daughters of Moab.
And they called the people unto the sacrifices of their gods: and the people did eat, and bowed down to their gods.
And Israel joined himself unto Baalpeor: and the anger of the LORD was kindled against Israel.
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. Numbers 25:1-4