James 2:23

21 Was not our father Abraham justified by what he did when he offered his son Isaac on the altar?

22 You see that his faith was working with his actions, and his faith was perfected by what he did.

And the Scripture was fulfilled that says, “Abraham believed God, and it was credited to him as righteousness,” and he was called a friend of God.

24 As you can see, a man is justified by his deeds and not by faith alone.

25 In the same way, was not even Rahab the prostitute justified by her actions when she welcomed the spies and sent them off on another route?

Do read the surrounding verses too, because the context often says more than a single verse.

Compare

BSB
And the Scripture was fulfilled that says, “Abraham believed God, and it was credited to him as righteousness,” and he was called a friend of God.
KJV
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.
WEB
So the Scripture was fulfilled which says, “Abraham believed God, and it was accounted to him as righteousness,” and he was called the friend of God.
ASV
and the scripture was fulfilled which saith, And Abraham believed God, and it was reckoned unto him for righteousness; and he was called the friend of God.
DARBY
And the scripture was fulfilled which says, Abraham believed God, and it was reckoned to him as righteousness, and he was called Friend of God.
BLB
And the Scripture was fulfilled, the one saying, “And Abraham believed God, and it was reckoned to him for righteousness,” and he was called a friend of God.
ÅB
og Skriften ble oppfylt, som sier: Abraham trodde Gud, og det ble regnet ham til rettferdighet, og han ble kalt Guds venn.
OTB
Og skriften ble oppfylt som sier, "Abraham trodde Gud, og det ble regnet ham som rettferdighet," og han ble kalt en venn av Gud.
B1930
og Skriften blev opfylt, som sier: Abraham trodde Gud, og det blev regnet ham til rettferdighet, og han blev kalt Guds venn.

Study notes (Tyndale)

Original text and word study

Cross references