Deuteronomy 21:23

Leeser(i) 23 Then shall his body not remain all night on the tree, but thou shalt surely bury him on that day; for he that is hanged is a dishonor of God;and thou shalt not defile thy land, which the Lord thy God giveth thee for an inheritance.