.
We learned in Parsha Balak that Bila’am’s scheme to seduce Jewish men to avodah zora by way of immorality (co-habitation) resulted in a plague which killed 24,000 Jewish men until Pinchas’ act brought the plague to a halt. However, Bamidbar, Perek 25, posuk 4 and 5 read;
And Hashem, said to Moshe: Take all of the chiefs of the people, and hang them up unto the Hashem in the face of the sun, that (there) may turn away the fierce anger of Hashem from Israel. And Moshe said unto the judges of Israel: Slay you every one his men that have joined themselves unto the Ba’al Peor.