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

John 19:28

After this, Jesus knowing that all things were now accomplished, that the scripture might be fulfilled, saith, I thirst.

Read in other translations