Jesus teaching on eternal life is this, and Christ acknowledges this life comes from God the Father.
As in those who hear and believe God sent Christ, have passed from death into life right now.
About hearing Christ, those who Hear Christ are of God, as meaning God is their Father God and so they then by nature Hear and Believe in Christ. They are spiritually minded, spiritually alive to God, born again of the Spirit, so they are now of God. This hearing and life is God's gift to them and for backup also refer to Jesus saying the same thing in John 3, 6 and 8.
You must be first born again to be of God, hear Christ's words and believe.
Not all hear, if they don't hear they will not live.
John 8
19 Then they said to Him, “Where is Your Father?”
Jesus answered, “You know neither Me nor My Father. If you had known Me, you would have known My Father also.”
26 I have many things to say and to judge concerning you, but He who sent Me is true; and I speak to the world those things which I heard from Him.”
29 And He who sent Me is with Me. The Father has not left Me alone, for I always do those things that please Him.” 30 As He spoke these words, many believed in Him.
39 They answered and said to Him, “Abraham is our father.”
Jesus said to them, “If you were Abraham’s children, you would do the works of Abraham. 40 But now you seek to kill Me, a Man who has told you the truth which I heard from God. Abraham did not do this. 41 You do the deeds of your father.”
Then they said to Him, “We were not born of fornication; we have one Father—God.”
42
Jesus said to them, “If God were your Father, you would love Me,
(born again, spiritually minded, now having God as your Father, of God, not of the flesh.
Those who live according to the spirit, means they live as God has made the alive from the dead)
Romans 8
5 For those who live according to the flesh set their minds on the things of the flesh, but those who live according to the Spirit, the things of the Spirit. 6 For to be [b]carnally minded is death, but to be spiritually minded is life and peace. 7 Because the [c]carnal mind is enmity against God; for it is not subject to the law of God, nor indeed can be.
8 So then, those who are in the flesh cannot please God.
9 But you are not in the flesh but in the Spirit, if indeed the Spirit of God dwells in you.
for I proceeded forth and came from God; nor have I come of Myself, but He sent Me.
43 Why do you not understand My speech? Because you are not able to listen to My word. 44 You are of your father the devil,
(of course they cannot hear Christ, they are not enabled to listen to Christ by God as they are of Satan, spiritually dead.)
and the desires of your father you want to do. He was a murderer from the beginning, and does not stand in the truth, because there is no truth in him. When he speaks a lie, he speaks from his own
resources, for he is a liar and the father of it. 45 But because I tell the truth, you do not believe Me. 46 Which of you convicts Me of sin? And if I tell the truth, why do you not believe Me?
47 He who is of God hears God’s words; therefore you do not hear, because you are not of God.”
(of God meaning God is your Father, not the devil, and only way you get God as your Father God is to be begotten again, born of God by the Spirit of God, makes sense even in the natural as your parent bore you and you are their child, belonging to them, like Father, like Son, like You, you are now of the family of God. And our God makes everything work to your good, being the best Father you can ever have who gives you life.)
John 5
Life
24
“Most assuredly, I say to you, he who hears My word and believes in Him who sent Me has everlasting life, and shall not come into judgment, but has passed from death into life.
25
Most assuredly, I say to you, the hour is coming, and now is, when the dead will hear the voice of the Son of God; and those who hear will live.
26 For as the Father has life in Himself, so He has granted the Son to have life in Himself, 27 and has given Him authority to execute judgment also, because He is the Son of Man.
Judgement
28 Do not marvel at this; for the hour is coming in which all who are in the graves will hear His voice 29 and come forth—those who have done good, to the resurrection of life, and those who have done evil, to the resurrection of condemnation. 30 I can of Myself do nothing. As I hear, I judge; and My judgment is righteous, because I do not seek My own will but the will of the Father who sent Me.