God said to Moses, “Take all the leaders of Israel and kill them by hanging, leaving them publicly exposed in order to turn God’s anger away from Israel.”
When a man has committed a capital crime, been given the death sentence, executed and hung from a tree, don’t leave his dead body hanging overnight from the tree. Give him a decent burial that same day so that you don’t desecrate your God-given land—a hanged man is an insult to God.
You saw with your own eyes what God did at Baal Peor, how God destroyed from among you every man who joined in the Baal Peor orgies. But you, the ones who held tight to God, your God, are alive and well, every one of you, today.