Jesus knew from the beginning ... - As this implied a knowledge of the heart, and of the secret principles and motives of men, it shows that he must have been omniscient.
Related Commentaries of John 6:64
John 6:64
64 But there are some of you that believe not. For Jesus knew from the beginning who they were that believed not, and who should betray him.