Treasury of Scripture Knowledge
Now all this happened in order to fulfill what was spoken by the Lord through the prophet [Isaiah 7:14], saying,
They stayed there until Herod died, so that what was spoken by the Lord through the prophet would be fulfilled, saying [Hosea 11:1], "I [i.e., God] called my Son out of Egypt."
This was in order to fulfill what was spoken by Isaiah the prophet, saying, [Isa. 53:4], "[He] Himself took [care of] our [physical] weaknesses and carried [away] our diseases."
so what was spoken by the prophet Isaiah would be fulfilled when he said,
How [else] then should the Scriptures be fulfilled that this must happen [than what is taking place]?"
For I tell you that this [passage of Scripture], which was written about me, must be fulfilled [Isa. 53:12]: 'And He [i.e., Jesus] was counted with [i.e., as though He were one of] the criminals.' For the part [of that passage] that refers to me is being fulfilled."
Then Jesus said to the apostles, "These are the words that I told you while I was still with you, [when I said] that everything written in the law of Moses, and the prophets, and the psalms about me needed to be fulfilled."
This all happened so the Scripture, written in their law [Psa. 35:19], would be fulfilled, 'They hated me for no reason.'
Now Jesus knew that everything had been completed [i.e., relating to His crucifixion], so then He said, in order to fulfill Scripture [Psa. 69:21], "I am thirsty."