Above, our Lord had promised two things to his followers: liberation from darkness and the attainment of life, saying, "He who follows me does not walk in darkness, but will have the light of life" (8:12). The first of these has been treated above; so we are now concerned with the second, the obtaining of life through Christ. First, he states the truth; secondly he counters its denial by the Jews (v 52).
It should be noted that although Christ had been loaded down with insults and criticisms, he did not stop his teaching; indeed, after being accused of having a demon, he offers the benefits o...f his teachings more generously, saying: Truly, truly, I say to you, if any one keeps my word, he will never see death. He is here giving us an example that when the malice of wicked men increases, and those that are converted are abused with insults, preaching, so far from being curtailed, should be increased: "And you, son of man, be not afraid of them, nor be afraid of their words" (Ez 2:6); "the gospel for which I am suffering and wearing fetters like a criminal. But the word of God is not fettered" (2 Tim 2:9).
In this statement our Lord does two things: he requires something, and he promises something. What he requires is that his words be kept, if any one keeps my word - for the word of Christ is the truth. Therefore, we should keep it, first of all, by faith and continual meditation: "Do not forsake her, and she will keep you" (Prv 4:6); secondly, by fulfilling it in action: "He who has my commandments and keeps them, he it is who loves me" (14:21).
What he promises is freedom from death; thus he says, he will never see death, that is, experience it: "They who act by me (i.e., by divine wisdom) shall not sin; they who explain me shall have life everlasting" (Sir 24:30). Such a reward suits such merit, for life everlasting consists especially in the divine vision: "This is eternal life, that they know thee the only true God, and Jesus Christ whom thou has sent" (17:3). Now the seedbed and source of this vision comes into us by the word of Christ; "The seed is the word of God" (Lk 8:11). Therefore, just as a person who keeps the seed of some plant or tree from being destroyed succeeds in obtaining its fruit, so the person who keeps the word of God attains to life everlasting: "Keep my statutes and my ordinances by doing which a man shall live" (Lev 18:5).
Source: Commentary on John