Then when he says, Jesus said to them, our Lord somewhat settles their doubt. First, he commends the good they had; and secondly, he encourages them to make progress; thirdly, he explains his admonition (v 36).
Jesus said to them, The light is with you for a little longer. This can be understood in two ways. In one way, according to Augustine, so that "little" modifies "light." As if to say: "A little light is in you," insofar as it sees that the Christ remains for ever. For this is a truth, and every manifestation of the truth is a light infused by God. Yet this light which is in you is "lit...tle," because even though you recognize the eternity of the Christ, you do not believe in his death and resurrection. This shows that you do not have perfect faith. Thus, what was said to Peter applies also to them: "O man of little faith, why did you doubt?" (Mt 14:31).
It is understood in another way by Chrysostom, as meaning that the light is with you for a little longer time, that is, I, who am the light. It is the same as saying: I, the light, am among you for a brief time: "A little while, and you will see me no more" (16:16).
And so he exhorts them to make progress in good. First, he gives his exhortation; secondly, he shows the danger threatening them unless they do make progress.
He says: I say that you have a little light, but while you have it, walk, that is, move forward and make progress, so that you may understand that the Christ, in addition to his eternity, will also die and rise again. This is in keeping with the first explanation given above. Or, Walk while you have the light, that is, while I am among you, make progress and be concerned with possessing me in such a way as never to lose me: "Blessed are the people, O Lord, who walk in the light of thy countenance" (Ps 89:15).
And do this lest the darkness of unbelief, ignorance and eternal damnation overtake you and prevent you from going any further. For a person is overtaken by darkness when he is totally sunk in unbelief; and they would be this way if they believed in the eternity of the Christ in such a way as to deny the humiliation of his death: "A man whose way is hid" (Job 3:23); "We are wrapped up in darkness" (Job 37:19).
The danger threatening them unless they do progress is mentioned when he says, he who walks in the darkness does not know where he goes. For light, whether exterior or interior, directs man. Exterior light directs him as to external bodily acts, while the interior light directs his will. One, therefore, who does not walk in the light, not perfectly believing in Christ, but walks in the darkness, does not know where he goes, that is, to what goal he is being led. As we read in the Psalm (82:5): "They have neither knowledge nor understanding, they walk about in darkness." This is what happened to the Jews because they did not know what they were doing, but as people who were walking in the darkness they thought they were on the right road. And so they displeased God in the very things in which they believed they were pleasing him. Similarly, in the very things in which erring heretics believe they merit the light of truth and grace is the source of their being deprived of it: "There is a way which seems right to a man, but its end is the way to death" (Prv 14:12).
Source: Commentary on John