Jesus said to her, “I am the resurrection and the life. The one who believes in me will live, even though they die; and whoever lives by believing in me will never die. Do you believe this?” “Yes, Lord,” she replied, “I believe that you are the Messiah, the Son of God, who is to come into the world.” John 11:25-27 NIV
Jesus is clear that eternal life comes through believing in him. Repenting of your sin and believing that God raised Jesus from the dead. Trusting that God will do the same for you, for all eternity, keeping a promise for all time.