Now we have the last part of this Gospel, which is a kind of epilogue. First, the Gospel is commended; and then the vastness of the subject treated (v 25). The Gospel is commended because of two things: its author, and its truth. Three things are mentioned about the author.
First, there is the authority of the author, because This is the disciple ‑ understanding what was mentioned before who was loved above the others, intimate with Christ, able to question him with confidence, and to whom it was granted to remain until Christ came. All these things refer to the authority of the author.
John... is said to have been loved more than the others because of his unique charity: "By this all men will know that you are my disciples, if you have love for one another" (13:35). None of the other apostles speak so much of love for others as does John in his letters. We also read that as an old man he was carried to the church by his followers to teach the faithful. He taught only one thing: "Little children, love one another." This is the perfection of the Christian life.
Secondly, John's office is mentioned, which was to give testimony, for he says, who is bearing witness to these things. This is the special office of apostles: "You shall be my witnesses" (Acts 1:8); "You are my witnesses!" (Is 44:8).
Thirdly, he refers to his zeal when he says, and who has written these things. As an apostle he testified to the actions of Christ to those who were present; and in his zeal he recorded these actions in writing for those who were not with him and were to come after him: "Take a large tablet and write upon it in common characters" (Is 8:1); "The wisdom of the scribe depends on the opportunity of leisure; and he who has little business may become wise" (Sir 38:24). For it was granted to John to live until the time when the Church was at peace; and this is the time when he wrote all these things. John mentions such things so that we will not think that his gospel has less authority than the other three, seeing that he wrote after the death of all the other apostles, and the other gospels, especially that of Matthew, had been approved by them.
Now John states that his Gospel is true, and he speaks in the person of the entire Church which received it: "My mouth will utter truth" (Prv 8:7). We should note that although many have written about Catholic truth, there is a difference among them: those who wrote the canonical scriptures, such as the evangelists and apostles and the like, so constantly and firmly affirm this truth that it cannot be doubted. Thus John says, we know that his testimony is true: "If any one is preaching to you a gospel contrary to that which you received, let him be accursed" (Gal 1:9). The reason for this is that only the canonical scriptures are the standard of faith. The others have set forth this truth but in such a way that they do not want to be believed except in those things in which they say what is true.
Source: Commentary on John