Now we have the answer of Christ, where he shows their unbelief, proving they were deceitful in saying they wished to know the truth when they said, "How long will you keep us in suspense?" He shows this in two ways. First, because they did not believe his words; and about this he says, I told you, and you do not believe. As if to say: You say to me, "If you are the Christ," the king, "tell us." But I told you, that is, I told you the truth, and you do not believe. "If I tell you, you will not believe" (Lk 22:67).
He shows this in a second way because they do not believe his works. And about ...this he says: the works that I do in my Father's name, they bear witness to me. He first shows their unbelief in his works; secondly, the reason for their unbelief (v 26).
As to the first he says, the works that I do. This was like saying: You cannot be persuaded and satisfied by my words, nor even by those great works which I do in my Father's name, i.e., for his glory. They bear witness to me, because they can be performed by God alone. Thus they clearly show that I have come from God: "The tree is known by its fruit" (Matt 12:33); "These very works which I am doing, bear witness" (5:36). But you do not believe: "Though he had done so many signs before them, yet they did not believe in him" (12:37). For this reason they are inexcusable: "If I had not done among them the works which no one else did, they would not have sin; but now they have seen and hated both me and my Father" (15:24).
Source: Commentary on John