21 Then all the men of the city shall stone him to death with stones; so you shall purge the evil from your midst; and all Israel shall hear, and fear. 22 "And if a man has committed a crime punishable by death and he is put to death, and you hang him on a tree, 23 his body shall not remain all night upon the tree, but you shall bury him the same day, for a hanged man is accursed by God; you shall not defile your land which the Lord your God gives you for an inheritance.

Matthew Henry's Commentary on Deuteronomy 21:21-23

Commentary on Deuteronomy 21:18-21

(Read Deuteronomy 21:18-21)

Observe how the criminal is here described. He is a stubborn and rebellious son. No child was to fare the worse for weakness of capacity, slowness, or dulness, but for wilfulness and obstinacy. Nothing draws men into all manner of wickedness, and hardens them in it more certainly and fatally, than drunkenness. When men take to drinking, they forget the law of honouring parents. His own father and mother must complain of him to the elders of the city. Children who forget their duty, must thank themselves, and not blame their parents, if they are regarded with less and less affection. He must be publicly stoned to death by the men of his city. Disobedience to a parent's authority must be very evil, when such a punishment was ordered; nor is it less provoking to God now, though it escapes punishment in this world. But when young people early become slaves to sensual appetites, the heart soon grows hard, and the conscience callous; and we can expect nothing but rebellion and destruction.

Commentary on Deuteronomy 21:22-23

(Read Deuteronomy 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.