Deuteronomy 21:23 NIV

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.

References for Deuteronomy 21:23