1489 But if any one walks in the night, that is, in the night of iniquities, he will easily find dangers. Concerning this night we read: "Those who sleep at night" (1 Thess 5:7). But such a one, he stumbles, that is, strikes against something, because the light, of righteousness, is not in him.
1490 A certain Greek, Theophylactus, explains this another way. Beginning at If any one walks in the day, he says that the "day" is the presence of Christ in the world, and the "night" is the time after Christ's passion. So the meaning is this: The Jews are not to be feared because as long as I am in t...he world it is not you, but I, who am in danger. Thus, when the Jews wanted to arrest Christ, he said to the crowd: "If you seek me, let these men go. This was to fulfill the word which he had spoken, 'Of those whom you gavest me I lost not one'" (18:8). But if any one walks in the night, that is, in the time after the passion, you should be afraid to go into Judea, because you will suffer persecution from the Jews: "Strike the shepherd and the sheep will be scattered."
1491 Augustine explains it another way, so that the "day" indicates Christ: "We must work the works of him who sent me, while it is day" (9:4), and "As long as I am in the world, I am the light of the world" (9:5). The twelve hours of this day are the twelve apostles: "Did I not choose you, the twelve?" (6:71). But what should we say of what follows: "And one of you is a devil?" Judas, therefore, was not an hour of this day because he gave no light. We should say that our Lord spoke these words [about the twelve] not in reference to Judas, but to his successor, who was Matthias. Thus, the sense of Are there not twelve hours in the day? is as though he were saying: You are the hours, I am the day. Just as the hours follow the day, so you must follow me. So, if I wish to go to Judea you ought not to precede me or change my will, but you should follow me. He said something similar to Peter: "Get behind me, Satan!" (Matt 16:23), i.e., do not go ahead of me, but follow me by imitating my will. If any one walks in the day is the same as saying: You should not fear any danger, because you are going with me who am the day. So just as one who walks in the day does not run into anything, that is, does not stumble, so also you who walk with me: "If God is for us, who is against us?" (Rom 8:31). And this is because he sees the light of this world in me. But if any one walks in the night, in the darkness of ignorance and sin, then he stumbles; and this is because the spiritual light is not in him, not because of a defect in the light, but because of his own rebellion: "There are those who rebel against the light" (Job 24:13).
Source: Commentary on John