Deuteronomy 21:23

New Living Translation Bible (NLT)
the body must not remain hanging from the tree overnight. You must bury the body that same day, for anyone who is hung[b] 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.

Read Deuteronomy 21:23 in other translations