James 2:20-25 NKJV
But do you want to know, O foolish man, that faith without works is dead? Was not Abraham our father justified by works when he offered Isaac his son on the altar? Do you see that faith was working together with his works, and by works faith was made perfect? And the Scripture was fulfilled which says, “Abraham believed God, and it was accounted to him for righteousness.” And he was called the friend of God. You see then that a man is justified by works, and not by faith only.
Likewise, was not Rahab the harlot also justified by works when she received the messengers and sent them out another way?
NKJV: New King James Version