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

John 7:42

Hasn’t the Scripture said that the Christ comes of the offspring of David, and from Bethlehem, the village where David was?”

Read in other translations