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

Read Deuteronomy 21:23 Using Other Translations

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.
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.
the body must not remain hanging from the tree overnight. You must bury the body that same day, for anyone who is hung is cursed in the sight of God. In this way, you will prevent the defilement of the land the LORD your God is giving you as your special possession.