Ok, let's look at that passage. I highlighted in bold red (vss. 17, 25-26) where I believe your answer is.
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.
16 ¶ And, behold, one came and said unto him, Good Master, what good thing shall I do, that I may have eternal life?
19 Honour thy father and thy mother: and, Thou shalt love thy neighbour as thyself.
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.
23 ¶ Then said Jesus unto his disciples, Verily I say unto you, That a rich man shall hardly enter into the kingdom of heaven.
24 And again I say unto you, It is easier for a camel to go through the eye of a needle, than for a rich man to enter into the kingdom of God.
25 When his disciples heard it, they were exceedingly amazed, saying, Who then can be saved?
26 But Jesus beheld them, and said unto them, With men this is impossible; but with God all things are possible. (Mat 19:17, 16, 19, 20, 21, 22, 23, 24, 25, 26)