John 19:28

After this, Jesus knew that all had been accomplished, so in order that the Scripture might be completed, he said, "I thirst.

Other versions

King James Version

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

English Standard Version

After this, Jesus, knowing that all was now finished, said (to fulfill the Scripture), "I thirst."

New International Version

Later, knowing that all was now completed, and so that the Scripture would be fulfilled, Jesus said, "I am thirsty."