Deuteronomy 21:23
New American Standard Bible (NASB)his corpse shall not hang all night on the tree, but you shall surely bury him on the same day (for he who is hanged is [s]accursed of God), so that you do not defile your land which the Lord your God gives you as an inheritance.