Deuteronomy 21:22-23
Deuteronomy 21:22-23 NCV
If someone is guilty of a sin worthy of death, he must be put to death and his body displayed on a tree. But don’t leave his body hanging on the tree overnight; be sure to bury him that same day, because anyone whose body is displayed on a tree is cursed by God. You must not ruin the land the LORD your God is giving you as your own.