Early on in John's gospel, the Apostle has proven the deity of Jesus through the testimony of others and also by the miracles of Jesus. At this point in the text John now proves the deity of Jesus through the omniscience of Jesus, that Jesus knows all things. And specifically in this text we see that Jesus knows all that is to come.