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

Joshua 8:23

And the king of Ai they took alive, and brought him to Joshua.

Read in other translations