Spies and Rahab in Joshua 2: Faith That Saves a City
Short answer: Joshua 2 records that Joshua sent two men from Shittim to spy out Jericho, and they lodged in the house of a prostitute named Rahab. She hid them, told the king's men they had gone, and confessed that Yahweh had given the land to Israel. In return she asked that her family be spared. The spies agreed, and she let them down through the window by a scarlet cord. Israel kept that promise when Jericho fell. Scripture later names Rahab in Hebrews 11 as a woman of faith, in James 2 as justified by works, and in Matthew 1 as the mother of Boaz in the line of Jesus. Her story is not a footnote about espionage; it is a picture of a outsider who is rescued by trusting God.
Joshua sends spies and they end up at Rahab's house
The book of Joshua opens with Israel camped at Shittim, east of the Jordan. Moses is dead, and Joshua has been commissioned to lead the people into the land. The first recorded action of his leadership is to send two men across the river to look over the land, especially Jericho. Joshua 2:1 says, "Joshua the son of Nun secretly sent two men out of Shittim as spies, saying, 'Go, view the land, including Jericho.'" The Hebrew word for spies carries the sense of walking about, surveying, observing. This was reconnaissance, not a raid. Joshua wanted information about the land and its defenses before moving the whole nation across a flooded river.
The two men went and came into the house of a prostitute whose name was Rahab, and lodged there. We are not told why they chose her house. Perhaps it was the kind of place where strangers could stay without drawing attention, and in a walled city with a reputation to protect, a prostitute's house was one of the few places where two foreign men would not be immediately questioned. Whatever their reasoning, God was at work in the choice. The text does not present Rahab as a chance encounter; it presents her as a woman whose house became the hinge of the whole conquest narrative.
Rahab's occupation is stated plainly, without apology. Scripture calls her a prostitute again in Joshua 6, Hebrews 11, and James 2. The Bible does not sanitize her past, and it does not make her past the point of the story either. She is named by her trade, but she is not defined by it. What matters is what she does when two frightened spies knock on her door. Her story reminds us that God's call often comes to people whose lives are messy, whose reputations are damaged, and whose place in society is on the margins. He does not wait for us to become respectable before He uses us.
The location matters too. Rahab's house was built into the city wall, which is why she could let the spies down through the window. It was a literal boundary place, half inside Jericho and half outside it. She belonged to the city that was doomed, but she was about to be joined to a people she had never met. The rest of the chapter works out that tension: Rahab has one foot in Jericho and one foot in Israel, and she must choose which city will claim her. That is a picture of every person who hears the truth about God and must decide whether to stay in the old city or trust the promise of a new one.
She hides the spies and lies to the king's men
The king of Jericho heard that two Israelite spies had entered the city, and he sent men to Rahab's house demanding she bring them out. Rahab had already hidden them on the roof under stalks of flax. When the king's messengers arrived, she told them the men had left before the city gate closed and urged the pursuers to chase them toward the fords of the Jordan. Her words sent the search in the wrong direction, and the gate was shut behind them. It was a deliberate deception, and it protected the lives of the two men God had sent.
Christians have debated this lie for centuries. Some argue that lying is always wrong and that Rahab sinned even though God later honored her faith. Others argue that the Bible records her action without condemning it, and that her context was a war in which deception was part of the ordinary conduct of conflict. Joshua himself would later use a similar tactic at Ai. Scripture never explicitly calls this lie a sin, and Hebrews 11 and James 2 both praise Rahab without mentioning the deception. The honest answer is that faithful readers have differed here, and the passage itself does not settle the ethical question the way we might wish it would.
What the text does emphasize is her allegiance. Rahab did not lie to protect her own people; she lied to protect the enemies of her city. She had already decided whose side she was on, even before she explained why. Her deception was the outworking of a prior choice to align herself with Yahweh and with Israel. That does not automatically justify every aspect of what she did, but it does show that her actions flowed from faith, not from self-interest. She risked her life for two men she had just met, and she did it because she believed their God was the true God.
We should also notice the cost. If the king's men had searched the roof, Rahab would have been executed for treason. Her family would have shared her fate. She staked everything on the promise that Yahweh was giving the land to Israel, a promise she had only heard about from travelers and traders. That kind of risk is the shape of real faith. It is not a comfortable agreement with a set of ideas; it is a transfer of loyalty that puts your life in a different story than the one you were born into.
Rahab's confession: a pagan woman's theology
Before she sent the spies to safety, Rahab came up to the roof and spoke to them. She said that she knew Yahweh had given them the land, that terror of Israel had fallen on Jericho, and that the inhabitants' hearts had melted. She recounted what they had heard about the drying up of the Red Sea and about the defeat of Sihon and Og, the two Amorite kings east of the Jordan. Then she made a confession that stands among the clearest statements of faith in the Old Testament: Yahweh your God is God in heaven above and on earth beneath.
This is remarkable because Rahab was a Canaanite. She had grown up among people who worshiped Baal and Asherah and a whole pantheon of local deities tied to fertility, weather, and war. Her confession is not the vague acknowledgment that many nations made of foreign gods; it is an exclusive claim that Israel's God rules both the heavens and the earth. She had not seen the Red Sea part. She had not crossed the Jordan. She had only heard the reports, and she believed them. Jesus would later commend the faith of people who had not seen, and Rahab is one of the first examples in Scripture.
Her theology is also practical. Because she believed Yahweh had given the land to Israel, she knew Jericho was doomed. She did not try to bargain with God or argue that her city deserved mercy. She threw herself on His mercy and asked for her family to be spared. Her request was specific: spare my father, my mother, my brothers, my sisters, and all who belong to them, and save our lives from death. She did not ask for wealth or status. She asked for life for the people she loved, and she asked it from the God she had just come to trust.
The spies answered with an oath. They promised that if she kept their mission secret, they would deal kindly and truly with her when the Lord gave them the land. They gave her a sign: a scarlet cord to tie in the window through which she let them down. When Israel attacked, anyone inside her house would be spared; anyone who went out into the street would answer for it themselves. The covenant was simple and conditional, but it was a real covenant. Rahab had asked for mercy, and God, through two frightened spies, gave her a promise she could hold onto.
The scarlet cord and the window in the wall
The spies told Rahab to tie the scarlet cord in the window through which she had let them down. It was an ordinary household item, the kind of rope or cord used to secure a home, repurposed as a sign of deliverance. When Israel's army marched around Jericho and the walls fell, Rahab's house was the one section that survived with her family inside it. The cord was not magic. It was a token of a promise, and its power lay in the promise it represented, not in the cloth itself. Faith took the spies at their word and acted on it.
Down through the centuries, Christian readers have seen in the scarlet cord a picture of the blood of Christ. That reading is not explicit in the text, and we should be careful not to press it too hard. But the pattern is worth noticing. Just as the blood of the Passover lamb marked the homes of Israel in Egypt, so the cord marked Rahab's home in Jericho. In both cases, judgment was coming, and in both cases a sign of mercy distinguished those who belonged to God's people from those who did not. The Bible repeatedly uses visible signs to seal invisible promises: the rainbow, the Passover blood, circumcision, baptism, the Lord's Supper. Rahab's cord belongs to that family of signs.
There is also something quietly beautiful about the fact that the sign hung in her window, the very place she had used to help the spies escape. The window that once served as a way out for Israel's messengers became the way in for Israel's rescue. Her house was built into the wall, which means when the wall fell, her section could easily have been destroyed with it. Instead, the spies specifically told Joshua about her, and he sent the two men back to bring her and her family out. The same house that was a place of risk for the spies became a place of safety for a Canaanite family.
The fall of Jericho was total. Joshua 6 records that the city and everything in it was devoted to destruction. Only Rahab and those gathered in her house were spared. That means her family survived because they were inside the house of a prostitute who had trusted Yahweh. They may not have shared her faith at that point; the text does not say. But they were saved because they were with her. There is a sobering and hopeful truth here: our faith can bring people we love into a place of safety they would not have found on their own. Rahab's household was rescued because Rahab believed.
Why she was not destroyed with Jericho
Joshua 6:22-25 tells us how the promise was kept. Joshua said to the two men who had spied out the land, as Joshua 6:22-25 says, "Go into the prostitute's house, and bring the woman and all that she has out from there, as you swore to her." So the young men went in and brought out Rahab, her father, her mother, her brothers, and all who belonged to her. They set them outside the camp of Israel, which means she did not immediately become a full member of the covenant community. She was saved, but she still had to be brought in. Salvation and full inclusion are related but not identical, and the narrative is honest about that process.
The chapter ends with a note that Rahab has lived in Israel to this day, because she hid the messengers Joshua sent to spy out Jericho. That sentence spans generations. A woman who was once a Canaanite prostitute became a permanent resident among the people of God. Her old identity did not vanish overnight, but her new identity was real and lasting. The book of Joshua preserves her story as a testimony to the faithfulness of God and to the courage of a woman who chose the losing side of a war because she believed the reports about Yahweh were true.
Hebrews 11:31 gives us the theological summary: "By faith, Rahab the prostitute didn't perish with those who were disobedient, having received the spies in peace." Notice the contrast. She did not perish with those who were disobedient. The rest of Jericho heard the same reports she heard, but they did not believe. They hardened their hearts and trusted their walls. Rahab believed, and she was saved. The difference between her and her neighbors was not information; it was faith. They all knew about the Red Sea and the Amorite kings. Only Rahab acted on what she knew and cast herself on the mercy of God.
James 2:25 makes a complementary point: "In the same way, wasn't Rahab the prostitute also justified by works, in that she received the messengers and sent them out another way?" James is not contradicting Paul's teaching that we are justified by faith apart from works. He is saying that genuine faith shows itself in action. Rahab's faith was not a private opinion. It moved her to hide the spies, lie to the king's men, and hang a cord out her window. If she had claimed to believe Yahweh was the true God but handed the spies over, her faith would have been dead. Her works were the evidence, not the ground, of her standing with God.
Rahab in the family line of Jesus
Matthew 1:5 says, "Salmon became the father of Boaz by Rahab. Boaz became the father of Obed by Ruth. Obed became the father of Jesse." This is the genealogy of Jesus, and Rahab is named in it. A Canaanite prostitute from a doomed city became the great-great-grandmother of King David and an ancestor of the Messiah. It is one of the most surprising inclusions in all of Scripture. The Gospel of Matthew opens with a list of names that includes Tamar, Rahab, Ruth, and Bathsheba, women whose stories are tangled and painful, and it places them in the lineage of the Savior.
This is not an accident or an embarrassment. It is a deliberate theological statement. God's plan of redemption does not run only through respectable people. It runs through sinners who trust Him, outsiders who join His people, and women whose names would have been omitted from a purely aristocratic genealogy. Rahab's past is not hidden in Matthew's list; she is still called Rahab, the same name she bears in Joshua and Hebrews. Grace does not erase our history; it redeems it and weaves it into something we could never have planned ourselves.
Rahab also prefigures the mission to the Gentiles. She was a Canaanite, part of the nations that Israel was commanded to drive out, and yet she was brought into the covenant community and into the messianic line. Her story anticipates the day when people from every tribe and language and nation would be gathered into the people of God. When Jesus told His disciples to make disciples of all nations, He was fulfilling a pattern that had already begun with a woman on a city wall. The gospel going to the Gentiles is not a Plan B. It is woven into the story from Jericho onward.
Her inclusion should give hope to anyone who thinks their past disqualifies them. Rahab was not asked to clean herself up before she could be used by God. She was asked to trust Him and to act on that trust, and God did the rest. Her story is a standing rebuke to the idea that only certain kinds of people can belong to God's family. It is also a warning to those of us who have grown comfortable inside the church. If a Canaanite prostitute can become an ancestor of Jesus, then no one is beyond the reach of grace, and no one should be treated as though they were.
What Rahab teaches us about faith and risk
Rahab's faith was costly and concrete. She risked her life, her family's safety, and her place in her own city. She did not have a Bible, a prophet, or a miracle to confirm what she believed. She had reports, and she had the courage to act on them. That is often how faith works in ordinary life. We hear the word of God, we weigh it, and then we must decide whether we will order our lives around it or around the fears and loyalties that press on us from every side. Rahab chose the promise over the familiar, and God honored her choice.
Her story also shows that faith is not the same as certainty about every detail. Rahab did not know how the spies would escape, how the city would fall, or how she would be treated among Israel. She knew enough to trust God for the next step, and she took it. Many of us want the whole plan before we move. Rahab shows us that God often gives us light for the path we are on, not a map of the entire journey. She tied the cord, gathered her family, and waited. That is a model of patient, obedient faith.
Finally, Rahab's story is a story about belonging. She began outside the people of God and ended inside them, not as a servant or a second-class member, but as a mother in the line of the Messiah. The Bible does not present her as a project or a charity case. It presents her as a woman of faith whose name is honored in three different New Testament books. If you have ever felt like an outsider among God's people, Rahab's story is for you. The door into the family of God is open to those who trust Him, and the One who opened it has never closed it.
Biblical fidelity check
Joshua 2 establishes several things clearly. It establishes that Joshua sent spies, that Rahab hid them, that she confessed Yahweh as God in heaven and on earth, that she secured a promise for her family, and that the promise was kept in Joshua 6. It also establishes that Rahab was a prostitute, that she lied to the king's men, and that she was saved along with her household. The passage does not establish that lying is always permissible, that every pagan who hears about God will be saved, or that Rahab's later life was free of struggle. It also does not tell us how old she was, how long she lived, or what happened to her family after they settled in Israel.
A common misreading is that Rahab was saved because she was a good person or because her lie was a noble act that earned God's favor. That reading is wrong because Scripture consistently attributes her salvation to faith. Hebrews 11:31 says it was by faith that she did not perish with the disobedient, and James 2:25 says her works demonstrated her justification rather than producing it. She was not saved by hiding spies; she hid spies because she had been gripped by the truth about God. Another misreading treats her as a moral example whose deception we should imitate. The text does not command us to lie for God. It tells us what Rahab did in a specific crisis, and it calls us to trust the God she trusted, not to copy every detail of her conduct.
Other passages that speak to Joshua 2
Rahab's story does not stand alone. The conquest narratives raise hard questions about how God judges nations, and Ancient warfare rhetoric and Joshua: A Biblical Guide helps readers think through those questions carefully. Her confession of faith fits the larger biblical theme of trusting God without seeing the outcome, which is also at the heart of The Beatitudes Explained: Matthew 5:1–12 Meaning. The New Testament's use of her as an example of faith belongs to the same theology of enduring trust that the author of Hebrews develops, as explored in What Does Hebrews 1:2 Mean? Context, Theology, and Application and Hebrews 1: God Speaks by His Son. Together these passages show that God has always gathered a people from every background through faith in His word.
Frequently asked questions
Was Rahab saved by her lie or by her faith?
Scripture consistently attributes Rahab's salvation to faith. Hebrews 11:31 says she did not perish with the disobedient because she had received the spies in peace, and James 2:25 says her works demonstrated her justification. Her lie was part of a complex situation, and Christians have differed over whether it was sinful. But the ground of her salvation was her trust in Yahweh, not the cleverness of her deception. She acted on faith, and God honored that faith despite her imperfect understanding and conduct.
Why did God allow Rahab's family to be spared when the rest of Jericho was destroyed?
They were spared because Rahab asked for them and because the spies swore an oath to her. Joshua 6:22 records that Joshua sent the two men to bring out Rahab and all who belonged to her. The rest of Jericho heard the same reports Rahab heard but did not believe. Their destruction was judgment on a city whose iniquity had reached its fullness, while Rahab's household was rescued through her faith. This does not answer every question about the conquest, but it shows that God was willing to save anyone in Jericho who turned to Him.
How can Rahab be in Jesus' family line if she was a Canaanite?
Matthew 1:5 names Rahab as the mother of Boaz and therefore an ancestor of David and of Jesus. Her inclusion shows that God's plan of redemption always intended to include people from outside Israel. She was a Canaanite, part of the nations Israel was commanded to drive out, yet she joined the covenant community and married into the tribe of Judah. Her presence in the genealogy is a testimony to grace: God does not choose only the respectable or the powerful. He builds His family from those who trust Him.