One thing that I love about God is the people he chooses to use for his glory. Joshua sent out spies to check out Jericho. The spies hide out at Rahab the Harolt's house. Questions arise to why they were at a harlot's house in the first place. The original Hebrew makes it clear that they were probably mixing business with pleasure. But, it is possible that God led them there with her house being part of Jericho's wall.
Rahab enters the redemptive story simply by hiding the spies and telling them when and where to go. The most profound part of this story is when she told the spies all about Yahweh and that when Israel came to take their land like Yahweh promised, they should spare her. They agreed making a binding covenant between Israel and Rahab.
I say that Rahab had more faith than the spies and even Joshua. If Joshua had faith, he wouldn't have sent the spies! But, Rahab knew what God would deliver through on his promise.
God used Rahab the Harlot to further the Upper and Lower Story! Rahab is important in our faith because she demonstrated enough faith, despite being of ill-repute, that God chose her to to be in the lineage of David and eventually Jesus.
I am a man on a journey...