Numbers 25:4

Then the Lord said to Moses, “Take all the leaders of the people and execute them in broad daylight before the Lord, so that His fierce anger may turn away from Israel.”
BSB · Berean Standard Bible
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.
KJV · King James Version
The Lord said to Moses, “Take all the chiefs of the people, and hang them up to the Lord before the sun, that the fierce anger of the Lord may turn away from Israel.”
WEB · World English Bible
And Jehovah said unto Moses, Take all the chiefs of the people, and hang them up unto Jehovah before the sun, that the fierce anger of Jehovah may turn away from Israel.
ASV · American Standard Version

Related passages

From the Treasury of Scripture Knowledge, grouped by the word they explain.

all the heads
Numbers 25:14, 15, 18; Exodus 18:25; Deuteronomy 4:3; Joshua 22:17; Joshua 23:2
and hang
Dr. Kennicott remarks, that the Samaritan and Hebrew texts must be united to make the sense of this verse complete: "And the Lord said unto Moses, Speak unto all the heads of the people; and let them slay the men that were joined to Baal-peor; and hang them up before the Lord, against the sun," etc.
Deuteronomy 13:6–9, 13, 15; Deuteronomy 21:23; 2 Samuel 21:6, 9; Esther 7:9, 10
that the fierce
Numbers 25:11; Deuteronomy 13:17; Joshua 7:25, 26; Psalm 85:3, 4; Jonah 3:9