"Then Jesus, looking at him, loved him, and said to him, “One thing you lack: Go your way, sell whatever you have and give to the poor, and you will have treasure in heaven; and come, take up the cross, and follow Me.” Mark 10:22
Notice the question asked by the young man. "What shall I do that I might inherit eternal life?"
When you ask Jesus a question that important you had better be ready for an honest answer.
Jesus identified one thing this young man lacked - love. The five commandments Jesus quoted to this fellow all have to do with loving others.
Essentially, Jesus told him, "You must sell out and give up in order to get in."
"Selling out" requires:
1) Sell whatever you have
2) Give it to the poor
3) Come (to Jesus)
4) Take up the cross
5) Follow Me
Inheriting eternal life then, requires selling all, giving to needy, coming to Jesus, dying to self and become a follower.
You cannot have eternal life without following Christ, And you can't follow Christ unless you die to self. And you won't die to self if you love your wealth more than you love God. You can't buy your way to Heaven but you can sell your way there!
Sell out, give up and you can get in!