NET
28 After this Jesus, realizing that by this time everything was completed, said (in order to fulfill the scripture), “I am thirsty!”
Darby
28 After this, Jesus, knowing that all things were now finished, that the scripture might be fulfilled, says, I thirst.
KJV
28 After this, Jesus knowing that all things were now accomplished, that the scripture might be fulfilled, saith, “I thirst.”