Old Testament readings use the Septuagint , the Scripture the apostles quoted. Masoretic numbering shown for reference.Learn why
WEB

Deuteronomy 21:22

If a man has committed a sin worthy of death, and he is put to death, and you hang him on a tree,

Read in other translations