Deuteronomy 21:23

his corpse shall not remain on the tree. Instead, he shall be buried on the same day. For he who hangs from a tree has been cursed by God, and you shall not defile your land, which the Lord your God will give to you as a possession.

Other versions

King James Version

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.

English Standard Version

his body shall not remain all night on the tree, but you shall bury him the same day, for a hanged man is cursed by God. You shall not defile your land that the LORD your God is giving you for an inheritance.

New International Version

you must not leave his body on the tree overnight. Be sure to bury him that same day, because anyone who is hung on a tree is under God's curse. You must not desecrate the land the LORD your God is giving you as an inheritance.