Deuteronomy 21:23

King James Version Bible (KJV)
His body shall not remain all night upon the tree, but thou shalt in any wise bury him that day; (for he that is hanged is accursed of God;) that thy land be not defiled, which the Lord thy God giveth thee for an inheritance.

Read Deuteronomy 21:23 in other translations