She took a faith risk
Joshua 2. The story of Rahab the harlot is a remarkable account of a woman who knew little about the God of Israel, but who applied the little she knew. Rahab took the risk of protecting the two Israelite spies who came to investigate the city of Jericho. When she hid them on the roof of her house on the city wall, she acknowledged to them that the “the LORD your God, He is God in heaven above and on earth beneath.” She asked for the reward of protection when Israel overtook her city, and they instructed her to bind a line of scarlet cord in her window as a token against that day. She and her household were spared (Joshua 6). She is mentioned in Matthew 1 as being a part of the Messianic line and in Hebrews 11 and James 2 as an example of faith in action.