you must not leave the body on the tree overnight. Be sure to bury it that same day, because anyone hung on a tree is under God’s curse. You must not defile the land Yahweh your God is giving you as an inheritance.
In context
21Then all the men of his city are to stone him to death. You must purge the evil from among you, and all Israel will hear and be afraid. 22If someone guilty of a capital offense is put to death and his body is hung on a tree, 23you must not leave the body on the tree overnight. Be sure to bury it that same day, because anyone hung on a tree is under God’s curse. You must not defile the land Yahweh your God is giving you as an inheritance.