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

Joshua 2:4

And the woman took the two men, and hid them, and said thus, There came men unto me, but I wist not whence they were:

Read in other translations