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

Joshua 6:26

And Joshua adjured [them] on that day before the Lord, saying, Cursed [be] the man who shall build that city: he shall lay the foundation of it in his firstborn, and he shall set up the gates of it in his youngest son. And so did Hozan of Baethel; he laid the foundation in Abiron his firstborn, and set up the gates of it in his youngest surviving son.

Read in other translations