Forgive me as I don't recall the scriptures exactly but I know you could find them.
Paul said we are saved apart from works so no one can boast, and James said we faith without work is dead. Both of them used an OT story to prove their piont. They even used the same story. It was Abraham offreing up Issac. How would this be possable if the Bible is Gods word? Simple, we as men could only see Abraham raise the knife up over Issac, but God read Abraham's heart before he even got to the foot of the mountain. By faith we are justifed by God, by works we are justified by men. Find those scriptures and read the chapters in total and you will see the differance. James is looking at things from a human perspective. I hope this helps