The point people miss when it comes to abraham is what Paul tried to show to the legalist, and James tried to show through the "free grace: or "cheap grace" crowd.
Paul was showing that it was not the works Abraham did which saved him. He was saved by grace through his faith. Not because of the works he did.
James was showing to the people who thought mere belief was enough. I can live anyway I want, I have free grace. That one can say we have faith, and think we are saved, But is our faith real.
Imagine if Abraham said, Oh God I trust you, when God said" leave your family and land and go to a place I have prepared for you." And then After Abraham said he trusted God, he never left his family or land and stayed put. Did he realy trust God?
Or another example. God said take your Son which I promised you and sacrifice him to me, Abraham said ok, I trust you (have faith) But he did not do what God asked him. Did he really trust him?
Abraham did exactly what James said, He proved his faith by his work, believing God would not be slack on his promise, and able to raise his son from the dead.
There is a difference between saying I believe God, (even demons believe) and actually trusting God (faith). A person who merely believes will not show any works, because his faith is not real. A person who has true faith trusts God and will show it by his works.