Thus Christ presented the various testimonies to himself not for the reason they thought, but for another one: because I know you, i.e., I have made known about you, that you do not have the love of God in your hearts, although you pretend to have it. And so you are not persecuting me because of your love for God. You would be persecuting me for the love of God if God and the Scriptures did not bear witness to me; but God himself bears witness to me by himself, his works and in the Scriptures, as has been said. Consequently, if you truly loved God, then so far from rejecting me, you would come... to me. You, therefore, do not love God.
Another interpretation would be this. It is as though he were saying: I have not brought in these witnesses because I wanted your praise; but I know you do not love God and your waywardness makes me sad, and I want to lead you back to the way of truth: "Now they have seen and hated both me and my Father" (below 15:24); "The pride of those who hate you continuously rises," as the Psalm (73:23) says.
Here we should point out that God cannot be hated in himself by anyone, nor can he be hated with respect to all his effects, since every good in things comes from God, and it is impossible for anyone to hate all good, for he will at least love existence and life. But someone may hate some effect of God, insofar as this is opposed to what he desires: for example, he might hate punishment, and things of that sort. It is from this point of view that God is said to be hated.
Source: Commentary on John