Deuteronomy 21:22-23
Deuteronomy 21:22-23 ASV
And if a man have committed a sin worthy of death, and he be put to death, and thou hang him on a tree; his body shall not remain all night upon the tree, but thou shalt surely bury him the same day; for he that is hanged is accursed of God; that thou defile not thy land which Jehovah thy God giveth thee for an inheritance.