Numbers 25:3

25:3 When Israel joined themselves to Baal-peor, the anger of the Lord flared up against Israel.

Numbers 25:5

25:5 So Moses said to the judges of Israel, “Each of you must execute those of his men who were joined to Baal-peor.”