Then (v 36), he presents the divine testimony. First, he mentions its greatness; and then he continues on to describe it.
He says: I do not need proof from men for my sake, but for your sake, for I have testimony that is greater than that of John, that is, the testimony of God, which is greater than the testimony of John: "If we receive the testimony of men, the testimony of God is greater" (1 Jn 5:9). It is greater, I say, because of its greater authority, greater knowledge, and infallible truth, for God cannot deceive: "God is not like man, a liar" (Nm 23:19).
God bore witness to Christ in... three ways: by works, by himself, and by the Scriptures. First, he mentions his witness as given by the working of miracles; secondly, the way God gave witness by himself (v 37); thirdly, the witness given through the Scriptures (v 39).
He says first: I have testimony that is greater than that of John, that is, my works, i.e., the working of miracles, the very works which my Father has given me to perform. We should point out that it is natural for man to learn of the power and natures of things from their actions, and therefore our Lord fittingly says that the sort of person he is can be learned through the works he does. So, since he performed divine works by his own power, we should believe that he has divine power within him: "If I had not done among them the works which no one else did, they would not have sin," that is, the sin of unbelief (below 15:24). And so he leads them to a knowledge of himself by appealing to his works, saying, the very works which my Father has given me in the Word, through an eternal generation, by giving me a power equal to his own. Or we could say, the very works which my Father has given me, in my conception, by making me one person who is both God and man, to perform, i.e., to perform them by my own power. He says this to distinguish himself from those who do not perform miracles by their own power but have to obtain it as a favor from God; thus Peter says: "In the name of Jesus Christ of Nazareth: stand up" (Acts 3:6). Thus it was God, and not themselves, who accomplished these works; but Christ accomplished them by his own power: "Lazarus, come forth," as John reports below (11:43). Accordingly, those works that I myself perform—they bear witness to me; "If you do not believe me, at least believe my works" (below 10:38). We see from Mark (16:20) that God bears witness by the working of miracles: "The Lord worked with them and confirmed the word by the signs that followed."
Source: Commentary on John