2:14-26 James explains why Christians need to be concerned about the judgment of their actions (2:12-13): Real faith must be accompanied by good deeds (see 1:22-25).
2:14 if you say you have faith: James writes to Christians who need to be stimulated to produce actions that should arise from genuine faith. Paul makes the same point (see, e.g., Gal 5:6) but often criticizes people for trying to base their relationship with God on what they do (Rom 3:20, 28; 4:3-5; Gal 2:16; 3:1-14).