As you can see, a man is justified by his deeds and not by faith alone.
In this latter part of the chapter, the apostle shows the error of those who rested in a bare profession of the Christian faith, as if that would save them, while the temper of their minds and the tenour of their lives were altogether disagreeable to that holy religion which they professed.
Commenting on James 2:14-26
Ye see then how that by works a man is justified,.... Not as causes procuring his justification, but as effects declaring it; for the best works are imperfect, and cannot be a righteousness justifying in the sight of God, and are unprofitable in this respect; for when they are performed in the best manner, they are no other than what it is a man's duty...
Verse 24. Ye see then. From the course of reasoning pursued, and the example referred to. How that by works a man is justified, and not by faith only. Not by a cold, abstract, inoperative faith. It must be by a faith that shall produce good works, and whose existence will be shown to men by good works.