Jesus answered, "If you want to be perfect, go, sell your possessions and give to the poor, and you will have treasure in heaven. Then come, follow me." When the young man heard this, he went away sad, because he had great wealth. Then Jesus said to his disciples, "I tell you the truth, it is hard for a rich man to enter the kingdom of heaven. Again I tell you, it is easier for a camel to go through the eye of a needle than for a rich man to enter the kingdom of God." —Matthew 19:21-24
This seems fairly straightforward to me. It's not the only time Jesus suggested giving away money was a godly thing to do, of course, but this passage seems to sum it up nicely. The message I take from this is that concentrating on keeping wealth—caring about doing so—is detrimental to your relationship with God. Note I say "detrimental", not "an absolute bar", yet either way, I'm not sure I understand why so many Christians seem to be amongst the most greedy wealth-seekers, and I definitely don't understand prosperity preachers.