Careful, there, Brother. That’s not a scripture condemning wealth. If so, Solomon, David, Abraham, and many other giants of the faith stand condemned.
That, in context, is a scripture about not having a false god. If you read the surrounding verses, Jesus quotes many of the commandments but the first one, and this rich young ruler claims he keeps all the laws, so he should know them.
Jesus left the false god commandment(s) out so the young man could realize, after he pondered the answer, what his wealth was to him.
And - the next verses talk about how ALL things are possible with God, even a rich man entering Heaven.
Like the story of the woman caught in adultery, which ends with "Now you go, and sin no more," at least half of the lesson is (deliberately, in many cases) omitted simply by quoting the first part. "Judge not, lest you be judged," is a fine lesson; but omitting the conclusion denies the message that there is someone (Christ) with the authority to judge and the authority to forgive, and that true repentance is a requirement of the gift.