Deuteronomy 21:23
his body shall not remain all night on the tree, but you shall surely bury him the same day; for he who is hanged is accursed of God. Don’t defile your land which the LORD your God gives you for an inheritance.
World English Bible (Public Domain)
In context
Before · Deuteronomy 21:21–22
21All the men of his city shall stone him to death with stones. So you shall remove the evil from among you. All Israel shall hear, and fear. 22If a man has committed a sin worthy of death, and he is put to death, and you hang him on a tree,
23his body shall not remain all night on the tree, but you shall surely bury him the same day; for he who is hanged is accursed of God. Don’t defile your land which the LORD your God gives you for an inheritance.