James 2:21 – If Abraham Was Saved by Works, Why Does the Bible Say He was Justified by Faith?

Here James says that Abraham, our father, was justified by works. However, Paul wrote, “For by works of the law no human being will be justified.” (Rom 3:20) How is it that these two were not contradicting one another?