Deuteronomy 21:21-23 Catholic Public Domain Version (CPDV)

21. Then the people of the city shall stone him to death. And he shall die, so that you may take away the evil from your midst. And so may all of Israel, upon hearing it, be very afraid.

22. When a man will have sinned in a matter which is punished by death, and, having been judged unto death, he has been hanged on a gallows:

23. his corpse shall not remain on the tree. Instead, he shall be buried on the same day. For he who hangs from a tree has been cursed by God, and you shall not defile your land, which the Lord your God will give to you as a possession."

Deuteronomy 21