Now listen, you rich people, weep and wail because of the misery that is coming on you. Your wealth has rotted, and moths have eaten your clothes. Your gold and silver are corroded. Their corrosion will testify against you and eat your flesh like fire. You have hoarded wealth in the last days. James 5:1-3
“Unused wealth does the kingdom no good and condemns those who refuse to use it for God…We live in the last days and have done so since Pentecost (cf. Acts 2:17). Christ can return at any point. Where is our treasure? Are we laying it up on earth so that we might live in comfort, planning for a long life here (see cf. Luke 12:31-21), or do we focus more on amassing treasure in heaven with God, being merely grateful for the blessings he has given us here and now? The condemnation is not for owning wealth per se, but for hoarding rather than using it for kingdom purposes…Our view of eternity will affect how we live today.”
Craig L. Blomberg and Mariam J. Kamell in James: Exegetical Commentary on the New Testament (Grand Rapids: Zondervan, 2008) 221-222.