Lets look at the scripture in context
James 2: 23-25
***And the scripture was fulfilled which saith, Abraham believed God, and it was imputed unto him for righteousness: and he was called the Friend of God.*****
24 Ye see then how that by works a man is justified, and not by faith only.
25...