Joshua was perched on the edge of entering the promised land and he sent 2 spies ahead into Jericho. They actually end up in a brothel, at Rahab the prostitute’s house.
Somebody ratted out the spies and the King of Jericho sends his sends some troops to capture these spies. Rahab helped misdirect the troops and the spies escape back to Israel.
Rahab knows about the reputation of Israel and the NAME of YAHWEH. She trusts in the powerful God of Israel–the God of Heaven and Earth–and in His name asks the spies to spare her life. She trusted in the God of these men and therefore trusted them (See it for yourself in Joshua 2:8+).
When the spies return and give the news that the people of Jericho are shaking in their boot, the Israelites are filled with courageous and confidence. Not how they were 40 years earlier!!
We know the story of the conquering of Jericho, but we focused on the reality that Rahab and her family are the first Gentiles brought into the nation of Israel! The Scriptures remember her faith fondly.
Also in the book of James, amongst a discussion about real faith, it states:
In the same way, was not even Rahab the prostitute considered righteous for what she did when she gave lodging to the spies and sent them off in a different direction?
Real faith is evidenced by real actions!! Rahab, an outsider, believed in our God…and she put feet to her faith!.
Beyond that, our great and welcoming God moved this woman from the fringe into a quite prestigious place in the nation of Israel. She became the great, great, great grandmother of King David and part of the line of the Messiah!