Jas James, chapter Epistle of James, chapter 2
But someone may claim that some people are saved because they trust in God and other people are saved because they do good things for others. In answer to that, the inadequacy of faith without good deeds is demonstrated by the example of demons. From the examples of Abraham and Rahab we can see that only by obeying God and doing good things for others can people prove that they truly trust in God.
James 2:18-26
But someone may say to me, “God saves some people only because they trust in him, and he saves others because they do good deeds to people.” I would answer that person, “You(sg) cannot prove to me that people truly trust in God if they do not do good things for others. But by doing good things for others I will prove to you that I truly trust in God”