John 19:28

King James Version Bible (KJV)
After this, Jesus knowing that all things were now accomplished, that the scripture might be fulfilled, saith, I thirst.

Read John 19:28 in other translations