Deuteronomy 21:23

New International Reader's Version Bible (NIRV)
Then you must not leave the body on the pole all night. Make sure you bury it that same day. Everyone who is hung on a pole is under God’s curse. You must not make the land “unclean.” The Lord your God is giving it to you as your own.

Read Deuteronomy 21:23 in other translations