Deuteronomy 21:22
If a man has committed a sin worthy of death, and he is put to death, and you hang him on a tree,
World English Bible (Public Domain)
In context
Before · Deuteronomy 21:20–21
20They shall tell the elders of his city, “This our son is stubborn and rebellious. He will not obey our voice. He is a glutton and a drunkard.” 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,
After · Deuteronomy 21:23
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.