5 Salmon was the father of Boaz by Rahab, Boaz was the father of Obed by Ruth, and Obed the father of Jesse. 6 Jesse was the father of David the king. David was the father of Solomon by Bathsheba who had been the wife of Uriah. Matthew 1:5-6 (NASB)
24 You see that a man is justified by works and not by faith alone. 25 In the same way, was not Rahab the harlot also justified by works when she received the messengers and sent them out by another way? 26 For just as the body without the spirit is dead, so also faith without works is dead. James 2:24-26 (NASB)
How would you like it if your name was forever associated with the profession of prostitution? Rahab lived on the wall in the city of Jericho. When the two spies sent by Joshua entered the city, they stayed at her house. When the city officials knew of their presence, Rahab hid them then helped them escape. In return the spies promised to save her and her family when Jericho was attacked by the Israelites. Later, she was wed to Salmon of the tribe of Judah. Their son Boaz was the kinsman redeemer who married Ruth. Their son Obed became the father of Jesse who became the father of David the King.
This put Rahab in the genealogical line of Jesus Christ. However, she is still called Rahab the Harlot or Rahab the prostitute in scripture. Why? Rahab is a trophy of God’s grace. She is an example to us all that the good we do that is eternal is always by and through God’s grace. When we are weak, yet obedient, God is strong through us. That is why James can say that good works will always accompany genuine saving faith. As regenerate believers, we must learn this. Any works we do in our own abilities are not eternal. All of the work God does through us is eternal.