Deuteronomy 21:23

NIV
New International Version

23you 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.