Deuteronomy 21:22

If a man has committed a sin worthy of death, and he is executed, and you hang his body on a tree,

Note Or impale his body on a pole; similarly in verse 23

BSB · Berean Standard Bible
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:
KJV · King James Version
If a man has committed a sin worthy of death, and he is put to death, and you hang him on a tree,
WEB · World English Bible
And if a man have committed a sin worthy of death, and he be put to death, and thou hang him on a tree;
ASV · American Standard Version

Related passages

From the Treasury of Scripture Knowledge, grouped by the word they explain.

worthy of death
Heb. 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; Joshua 10:26; Deuteronomy 19:6; Deuteronomy 22:26; 1 Samuel 26:16; Matthew 26:66; Acts 23:29; Acts 25:11, 25; Acts 26:31
thou hang
2 Samuel 21:6, 9; Luke 23:33; John 19:31–38