When God calls us to faith, he also calls us to obedience. Please prayerfully consider the commentary by John MacArthur:
sell whatever you have.Jesus was not making either philanthropy or poverty a requirement for salvation, but exposing the young man’s heart. He was not blameless, as he maintained (v. 20), since he loved his possessions more than his neighbors (cf. Lev. 19:18). More importantly, he refused to obey Christ’s direct command, choosing to serve riches instead of God (Matt. 6:24). The issue was to determine whether he would submit to the Lordship of Christ no matter what He asked of him. So, as he would not acknowledge his sin and repent, neither would he submit to the Sovereign Savior. Such unwillingness on both counts kept him from the eternal life he sought. treasure in heaven. Salvation and all its benefits, given by the Father who dwells there, both in this life and the life to come (cf. Matt. 13:44–46). take up the cross. See on8:34–38.
(MacArthur Study Bible. Electronic Edition. Logos Bible Software)