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

Deuteronomy 22:18

And the elders of that city shall take that man, and shall chastise him,

Read in other translations