Matthew 7:21:
Not every one that saith to me, Lord, Lord, shall enter into the kingdom of heaven: but he that doth the will of my Father who is in heaven, he shall enter into the kingdom of heaven.
.
Luke 13:24
Strive to enter by the narrow gate; for many, I say to you, shall seek to enter, and shall not be able.
.
Actually neither of these verses which you have referenced says anything about riches, but rather to doing the Will of God.