Jas_2:17 Even so faith, if it hath not works, is dead, being alone.
But you have to read the rest of it to know the context.
Works are evidence of a person's salvation, not the cause of it. James is stating that a true faith
will produce works. A person who is saved will definitely have good works in their life. Someone can say they have faith but yet there is no evidence of fruit, which means they are not truly saved (the faith is dead, non existent).
That scripture even goes as far as giving an example, mentioning that "even the demons believe and tremble" - the demons believe, but they are not saved. There is a difference between professing belief and actually having the true saving faith. Actual faith will be obvious in the fruits that come from it. Again, the fruits
of salvation, that come afterwards.
James 2:17-26: Thus also faith by itself, if it does not have works, is dead. But someone will say, “You have faith, and I have works.”
Show me your faith without your works, and I will show you my faith by my works. You believe that there is one God. You do well.
Even the demons believe—and tremble! But do you want to know, O foolish man, that faith without works is dead? Was not Abraham our father justified by works when he offered Isaac his son on the altar? Do you see that faith was working together with his works, and by works faith was made perfect? And the Scripture was fulfilled which says, “Abraham believed God, and it was accounted to him for righteousness.” And he was called the friend of God. You see then that a man is justified by works, and not by faith only. Likewise, was not Rahab the harlot also justified by works when she received the messengers and sent them out another way? For as the body without the spirit is dead, so faith without works is dead also"
Well what about the infamous often quoted ephesians 2:8-9?
Don't forget verse 10 with that scripture (which is so often missed), since it concludes the scripture, making things very clear...
V10: ".....For we are His workmanship,
created in Christ Jesus
for good works, which God prepared beforehand that we should walk in them"
We are created FOR good works. The works come AFTER salvation.... they are the fruits of our salvation. They were prepared beforehand.
Ephesians 2:8-9: "For by grace you have been saved through faith, and that not of yourselves; it is the gift of God,
not of works, lest anyone should boast. For we are His workmanship,
created in Christ Jesus
for good works, which God prepared beforehand that we should walk in them"