The person and actions of Rahab were different from those of Abraham, yet the point in both is the same. They believed God and acted accordingly. James and Hebrews taken together show that saving faith always results in action. The body without the spirit is dead, it can accomplish nothing. So also faith without works is dead.
Sound doctrine is the basis of saving faith.
But truly believing the facts of the gospel will result in a changed life. So works are an essential result of saving faith. If there are no works, then the faith is merely intellectual assent. This even the demons do. All quotations used by permission.