Numbers 25:1-4

Baal Worship at Peor

1While Israel lived in aShittim, bthe people began to whore with the daughters of Moab. 2 cThese invited the people to the sacrifices of their gods, and the people ate and bowed down to their gods. 3So Israel yoked himself to Baal of Peor. And the anger of the Lord was kindled against Israel. 4And the Lord said to Moses, dTake all the chiefs of the people and ehang
Or impale
them in the sun before the Lord, gthat the fierce anger of the Lord may turn away from Israel.”

Numbers 31:16

16Behold, hthese, ion Balaam’s advice, caused the people of Israel to act treacherously against the Lord in the incident of jPeor, and so kthe plague came among the congregation of the Lord.
Copyright information for ESV