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

Joshua 8:12

And he took about five thousand men, and set them to lie in ambush between Beth–el and Ai, on the west side of the city.

Read in other translations