Deuteronomy 21:21-23 New American Bible, Revised Edition (NABRE)

21. Then all his fellow citizens shall stone him to death. Thus shall you purge the evil from your midst, and all Israel will hear and be afraid.

22. If a man guilty of a capital offense is put to death and you hang him on a tree,

23. his corpse shall not remain on the tree overnight. You must bury it the same day; anyone who is hanged is a curse of God. You shall not defile the land which the Lord, your God, is giving you as a heritage.

Deuteronomy 21