Next the testimony is set forth: now all this was done that the Scriptures of the prophets might be fulfilled. And he does not say which ones, because it is found in nearly all of them; Psalm 22:17: they have dug my hands and feet, and they have numbered all my bones. And Isaiah 53:3: we have esteemed him the last of men, a man of sorrows. And he says that they might be fulfilled. The word "that" can be taken causatively, and in this sense it is not taken here; or consecutively, and in this sense it is taken here. For it did not happen because the prophets said it; rather, they foretold it bec...ause it was going to happen. Hence the meaning is that it might be fulfilled, i.e., by this deed was fulfilled what had been foretold through the prophets. Then the disciples all leaving him, fled; so that what is said in Psalm 38:12 was fulfilled: my friends and my neighbors have forsaken me. But why did they not forsake him from the beginning? Jerome answers: because it is written at John 7:30 that they sought him, and no man laid hands on him, because his hour was not yet come. Hence from the beginning they believed that he could free himself and would defend himself; but when they saw that he was captured and that he did not wish to defend himself, they fled and abandoned him.
Source: Commentary on Matthew