Points:
1. Accept Jesus as God, for only God is Good, and Jesus is the Good Master.
Matthew 19:16-17 KJV
[16] And, behold, one came and said unto him, Good Master, what good thing shall I do, that I may have eternal life? [17] And he said unto him, Why callest thou me good? there is none good but one, that is, God: but if thou wilt enter into life, keep the commandments.
Mark 10:17-18 KJV
[17] And when he was gone forth into the way, there came one running, and kneeled to him, and asked him, Good Master, what shall I do that I may inherit eternal life? [18] And Jesus said unto him, Why callest thou me good? there is none good but one, that is, God.
Luke 18:18-19 KJV
[18] And a certain ruler asked him, saying, Good Master, what shall I do to inherit eternal life? [19] And Jesus said unto him, Why callest thou me good? none is good, save one, that is, God.
2. Keep the commandments to inherit eternal life,
Matthew 19:17-20 KJV
[17] And he said unto him, Why callest thou me good? there is none good but one, that is, God: but if thou wilt enter into life, keep the commandments. [18] He saith unto him, Which? Jesus said, Thou shalt do no murder, Thou shalt not commit adultery, Thou shalt not steal, Thou shalt not bear false witness, [19] Honour thy father and thy mother: and, Thou shalt love thy neighbour as thyself.
Mark 10:19-20 KJV
[19] Thou knowest the commandments, Do not commit adultery, Do not kill, Do not steal, Do not bear false witness, Defraud not, Honour thy father and mother. [20] And he answered and said unto him, Master, all these have I observed from my youth.
Luke 18:20-21 KJV
[20] Thou knowest the commandments, Do not commit adultery, Do not kill, Do not steal, Do not bear false witness, Honour thy father and thy mother. [21] And he said, All these have I kept from my youth up.
3. Keep all ten, lack not one.
Matthew 19:20-22 KJV
[20] The young man saith unto him, All these things have I kept from my youth up: what lack I yet? [21] Jesus said unto him, If thou wilt be perfect, go and sell that thou hast, and give to the poor, and thou shalt have treasure in heaven: and come and follow me. [22] But when the young man heard that saying, he went away sorrowful: for he had great possessions.
Mark 10:21-22 KJV
[21] Then Jesus beholding him loved him, and said unto him, One thing thou lackest: go thy way, sell whatsoever thou hast, and give to the poor, and thou shalt have treasure in heaven: and come, take up the cross, and follow me. [22] And he was sad at that saying, and went away grieved: for he had great possessions.
Luke 18:22-23 KJV
[22] Now when Jesus heard these things, he said unto him, Yet lackest thou one thing: sell all that thou hast, and distribute unto the poor, and thou shalt have treasure in heaven: and come, follow me. [23] And when he heard this, he was very sorrowful: for he was very rich.
Commentary
Men are drawn, allured, attracted, to Jesus because of the prospect of having eternal life. Just as the Rich Young Ruler was drawn to Jesus.
Jesus was lifted up, crucified, to pay the penalty for the sins of man that a man might have eternal life.
John 12:32 KJV
[32] And I, if I be lifted up from the earth, will draw all men unto me.
The Rich Young Ruler was drawn, allured, attracted, to Jesus by the prospect of having eternal life.
Jesus told the Rich Young Ruler what to do to inherit eternal life. Believe in Jesus as God, keep his commandments, all ten, and lack not one.
The Rich Young Ruler was not willing to give up his possessions in order to have eternal life.
He was breaking the Tenth Commandment to not Covet.
Believe in Jesus as God, the Good Master.
Keep his commandments, all ten.
Lack not one of the Ten Commandments.
If you accept Jesus as God, keep his Ten Commandments, and lack not one, you shall inherit eternal life.