Deuteronomy 21:22

When a man will have sinned in a matter which is punished by death, and, having been judged unto death, he has been hanged on a gallows

Other versions

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:

English Standard Version

"And if a man has committed a crime punishable by death and he is put to death, and you hang him on a tree,

New International Version

If a man guilty of a capital offense is put to death and his body is hung on a tree,