James 5 is about Faith and Money. James knows one of the areas that Christians can drift away from their faith is by the temptation of the love of money. He did not say it was a sin to be rich.
After all, Abraham was a wealthy man, yet he walked with God and was greatly used of God to bless the whole world. James was concerned about the selfishness of the rich (we are all rich) and advised them to repent of their selfishness and to be generous with what was God’s anyway.
The temptations that James mentions include hoarding of our possessions, exploitation of others, and living in a self-indulgent way. We are so rich in Christ spiritually, out of thankfulness we ought to be generous to others.
We are reminded with the words of Jesus in Matt 6:33
“But seek first his kingdom and his righteousness, and all these things will be given to you as well.”
God wants us first and foremost to invest in the Kingdom of God, He will never short change us and He will always care for all our needs.
What a great God we have!!