Problem: Solomon lauded riches as a blessing from God, saying, “In the house of the righteous there is much treasure” (Prov. 15:6; cf. Ps. 112:3). However, James warned the rich to “weep and howl for your miseries that are coming upon you!” (5:1). Which is it?
Solution: The texts that speak about God blessing the righteous with riches refer to the general promise of God to supply the needs of those who live righteous lives. Exceptions to this establish the general rule, not diminish it. The passages that warn of the woes of wealth are written to those who idolize it, setting affection on it rather than on God (cf. also Luke 12:21). Both are true and complementary.
“Go to now, ye rich men, weep and howl for your miseries that shall come upon you. Your riches are corrupted, and your garments are motheaten. 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. 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. Ye have lived in pleasure on the earth, and been wanton; ye have nourished your hearts, as in a day of slaughter. Ye have condemned and killed the just; and he doth not resist you. (James 5:1-6)”