Commentaries
21:22,23 By the law of Moses, the touch of a dead body was defiling, therefore dead bodies must not be left hanging, as that would defile the land. There is one reason here which has reference to Christ; He that is hanged is accursed of God; that is, it is the highest degree of disgrace and reproach. Those who see a man thus hanging between heaven and earth, will conclude him abandoned of both, and unworthy of either. Moses, by the Spirit, uses this phrase of being accursed of God, when he means no more than being treated most disgracefully, that it might afterward be applied to the death of Christ, and might show that in it he underwent the curse of the law for us; which proves his love, and encourages to faith in him.
22, 23. if a man have committed a sin … and thou hang him on a tree—Hanging was not a Hebrew form of execution (gibbeting is meant), but the body was not to be left to rot or be a prey to ravenous birds; it was to be buried "that day," either because the stench in a hot climate would corrupt the air, or the spectacle of an exposed corpse bring ceremonial defilement on the land.