25 Likewise* also was not Rahab the harlot justified by works, when she had received the messengers, and had sent them out another way?
26 For as the body without the spirit is dead, so faith without works is dead also.
James concludes this teaching about the inseparable relationship between FAITH and the ACTIONS (works) that should naturally occur if true faith in Christ has been attained by a believer in HIM..
Rahab, who was a prostitute in Jericho, trusted in GOD and believed in HIM and then that faith led her to ACT upon that faith. Consequently, GOD saved her life and the lives of her entire family when Joshua and the armies of Israel took that city...
FAITH always produces fruit (actions) . The two are not separable....