Mat 13:52 Then said he unto them, Therefore every scribe which is instructed unto the kingdom of heaven is like unto a man that is an householder, which bringeth forth out of his treasure things new and old.
In this parable, Christ is talking about the teachings of the old testament and the new testament. Consequently, the treasure is also Christ, being that Christ is the word of God. I've seen people argue about the word of God either being, the Bible, or Christ, but actually, it's both. Also, just because you have riches, doesn't mean that they are good riches. There a plenty of examples of riches being used negatively, in scripture.
Jas 5:1 Go to now, ye rich men, weep and howl for your miseries that shall come upon you.
Jas 5:2 Your riches are corrupted, and your garments are motheaten.
Jas 5:3 Your gold and silver is cankered; and the rust of them shall be a witness against you, and shall eat your flesh as it were fire. Ye have heaped treasure together for the last days.
Jas 5:4 Behold, the hire of the labourers who have reaped down your fields, which is of you kept back by fraud, crieth: and the cries of them which have reaped are entered into the ears of the Lord of sabaoth.
Jas 5:5 Ye have lived in pleasure on the earth, and been wanton; ye have nourished your hearts, as in a day of slaughter.
Jas 5:6 Ye have condemned and killed the just; and he doth not resist you.
In this context, it's clearly talking about doctrine that is contrary to the teaching of Christ. A lot of people have what they believe to be the truths of God, when in reality, all they have, are the teachings of men. Imagine thinking that you have a lot of knowledge of God, only one day find out, that you don't know a thing. You though you were rich, but really, you are dirt poor, and desperately in debt.
Rev 3:17 Because thou sayest, I am rich, and increased with goods, and have need of nothing; and knowest not that thou art wretched, and miserable, and poor, and blind, and naked:
Rev 3:18 I counsel thee to buy of me gold tried in the fire, that thou mayest be rich; and white raiment, that thou mayest be clothed, and that the shame of thy nakedness do not appear; and anoint thine eyes with eyesalve, that thou mayest see.