Deuteronomy 21:22

Overview - Deuteronomy 21
The expiation of an uncertain murder.
10 The usage of a captive taken to wife.
15 The first-born is not to be disinherited upon private affection.
18 A rebellious son is to be stoned to death.
22 The malefactor must not hang all night on a tree.
Treasury of Scripture Knowledge

Deuteronomy 21:22  (King James Version)
And if a man have committed a sin worthy of death, and he be to be put to death, and thou hang him on a tree:
 


worthy of death
Hebrew of the judgment of death.
The Hebrews understand this not of putting to death by hanging, but of hanging a man up after he was stoned to death; which was done more ignominiously of some heinous malefactors. We have the examples of Rechab and Baanah, who, for murdering Ish-bosheth, were slain by David's commandment, their hand and feet cut off, and then hanged up.
2 Samuel 4:12

See also
Joshua 8:29 ; 10:26
So in Numbers 25:4 ,we read, "And the Lord said unto Moses, Take all the heads (chief men) of the people, and hang them up before the Lord against the sun, that the fierce anger of the Lord may be turned away from Israel." Among the Romans, in after ages, they hanged, or rather fastened to the tree ALIVE; and such was the cruel death of our blessed Lord and Saviour Jesus Christ.
19:6 22:26 1 Samuel 26:16 ; Matthew 26:66 ; Acts 23:29 ; Acts 25:11 Acts 25:25 26:31

thou hang
2 Samuel 21:6 2 Samuel 21:9 ; Luke 23:33 ; John 19:31-38