Deuteronomy 21:23 RSV

23 his body shall not remain all night upon the tree, but you shall bury him the same day, for a hanged man is accursed by God; you shall not defile your land which the LORD your God gives you for an inheritance.