Jesus said only those who are of God hears the word of God so man does not have a free will to hear and learn John 8:47
47 He that is of God heareth God's words: ye therefore hear them not, because ye are not of God.
Actually he stated more than that
John 6:45 (NASB95) — 45 “It is written in the prophets, ‘AND THEY SHALL ALL BE TAUGHT OF GOD.’ Everyone who has heard and learned from the Father, comes to Me.
Those who believe Moses would believe on Jesus
John 5:46 (LEB) — 46 For if you had believed Moses, you would believe me, for that one wrote about me.
Those who had God as their father would believe Jesus
John 8:42 (LEB) — 42 Jesus said to them, “If God were your father, you would love me, for I have come forth from God and have come. For I have not come from myself, but that one sent me.
Those desiring the will of God will know Jesus was speaking truth
John 7:17 (LEB) — 17 If anyone wants to do his will, he will know about my teaching, whether it is from God or I am speaking from myself.
Those who were God’s would be given to Jesus and have kept his word
John 17:6 (LEB) — 6 “I have revealed your name to the men whom you gave me out of the world. They were yours, and you have given them to me, and they have kept your word.