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

Joshua 24:23

“Now therefore put away the foreign gods which are among you, and incline your heart to Yahweh, the God of Israel.”

Read in other translations