John 18:9

[He said this] so the words He had spoken [previously] would be fulfilled [See 17:12], "I did not lose any of those men you [i.e., God] gave me."

John 17:12

I protected them while I was with them by [the power of] your name which you gave me. [See verse 11]. I guarded them so that not one of them was lost except the "son of destruction" [i.e., Judas]. [This was] so that the Scripture would be fulfilled [Psa. 41:9 ?].

Treasury of Scripture Knowledge

Summary

That the saying might be fulfilled, which he spake, Of them which thou gavest me have I lost none.

Bible References

Of

John 17:12
I protected them while I was with them by [the power of] your name which you gave me. [See verse 11]. I guarded them so that not one of them was lost except the "son of destruction" [i.e., Judas]. [This was] so that the Scripture would be fulfilled [Psa. 41:9 ?].