it is not to remain there overnight. It must be buried the same day, because a dead body hanging on a post brings God's curse on the land. Bury the body, so that you will not defile the land that the Lord your God is giving you. 1
References for Deuteronomy 21:23
21.23 Ga 3.13.