Who was Rahab in the Bible? A prostitute in the walled city of Jericho who hid two Israelite spies on her roof, bargained for her family’s lives, and walked out of the ruins of her city to live among the people of God. Then the story does something no reader sees coming: Matthew puts her name in the family tree of Jesus. A Canaanite woman with that reputation sits in the Messiah’s ancestry, and Matthew doesn’t blush about it.
Who was Rahab in the Bible? A woman on the wall
Joshua (the man who shares Jesus’ name) sends two men to look over Jericho, and they end up in “the house of a prostitute named Rahab” (Joshua 2:1, BSB). The Hebrew word for her, zonah, is as blunt as the English. The text doesn’t dress it up and neither should we, though it also doesn’t tell us how she came to that life. Her house was “built into the wall of the city” (Joshua 2:15, BSB), which is exactly the sort of place where strangers come and go without questions.
When the king’s men come knocking, she hides the spies under stalks of flax drying on her roof and sends the soldiers chasing shadows toward the Jordan. That is where readers get nervous, and I’ve given the question of lying its own treatment in What Does the Bible Say About Lying? Courtrooms, Midwives and Rahab. What matters here is what she says to the men that night, after the soldiers have gone.
What a Canaanite knew
I know that the LORD has given you this land and that the fear of you has fallen on us, so that all who dwell in the land are melting in fear of you.
Joshua 2:9 (BSB)
She has heard the stories. The sea dried up, the kings across the Jordan defeated. Everyone in Jericho heard them. The whole city drew one conclusion, which is to bolt the gates and hope. Rahab drew a different one. “The LORD your God is God in the heavens above and on the earth below” (Joshua 2:11, BSB). She uses God’s personal name, and she says it before anyone from Israel has asked her to.
Then she asks for something, and the word she picks is remarkable. She says, “please swear to me by the LORD that you will indeed show kindness to my family, because I showed kindness to you” (Joshua 2:12, BSB). The word behind “kindness” is chesed (חֶסֶד), the covenant loyalty the Hebrew Bible uses most often for God himself. Here a Canaanite prostitute asks for it, and says she has already practiced it, and it shapes the whole bargain. The spies answer with the same word: “we will show you kindness and faithfulness” (Joshua 2:14, BSB).
The scarlet cord
The sign is a cord. The men tell her to tie “this scarlet cord” in the window where she let them down (Joshua 2:18, BSB). The Hebrew word for cord there is tikvah (תִּקְוָה), which is spelled exactly like the ordinary Hebrew word for hope. Lexicons treat these as two separate words that happen to look alike, so I wouldn’t hang a doctrine on it. But anyone who reads Hebrew can hear the double meaning. A red thread in a window, and the word “hope” sitting inside it.
Jericho’s walls fall, the city is burned, and Joshua tells the two spies to bring Rahab out “just as you promised her” (Joshua 6:22, BSB). The ending is short and a little startling: “So she has lived among the Israelites to this day” (Joshua 6:25, BSB). The narrator can point to her and her family as people still living there.
That should unsettle a common assumption. Deuteronomy tells Israel to “show them no mercy” toward the seven nations of Canaan (Deuteronomy 7:2, BSB), and Jericho is the first city in the land. Yet the first Canaanite we meet by name in Joshua is rescued, adopted and remembered. The command meant something, and the story shows what it did not mean: a door shut forever on any person from that land who turned to the LORD. I take up that larger question in what Israel’s calling was actually for.
Why Matthew names her
Open the New Testament and the first page is a list of fathers. Then the pattern breaks:
Salmon was the father of Boaz by Rahab, Boaz the father of Obed by Ruth, Obed the father of Jesse, and Jesse the father of David the king.
Matthew 1:5-6 (BSB)
In a Jewish genealogy, women almost never appear. Matthew names four before Mary: Tamar, Rahab, Ruth, and the wife of Uriah, whom he refuses even to name (Matthew 1:3-6). Their stories are tangled with scandal or outsider birth, and Matthew’s Jewish readers knew every one. Rahab of Jericho and Ruth of Moab are the two foreigners among them, which means King David had a Canaanite and a Moabite among his ancestors, a few generations back. Matthew isn’t hiding it. He is opening his Gospel by saying that the Messiah descends from the people Israel’s own story kept letting in.
That’s a bigger point than it sounds. In a culture where family name carried honor and shame, a writer who wanted to impress would have tidied the list. Read Honor and Shame in the Bible and you see how deliberate Matthew’s choice was. He left the messy names in. If you want another story where a shame-sounding detail in David’s line turns out to be read wrongly, see Was King David a Bastard (Psalm 51:5)?
Faith with its sleeves rolled up
Later writers keep returning to her. Hebrews says “By faith the prostitute Rahab, because she welcomed the spies in peace, did not perish with those who were disobedient” (Hebrews 11:31, BSB). James asks whether “even Rahab the prostitute” was “justified by her actions when she welcomed the spies and sent them off on another route” (James 2:25, BSB). Two writers, two angles, one woman. For Hebrews she is faith, for James she is faith doing something. In both places she is still “the prostitute.” Nobody scrubbed the label, and nobody thought it cancelled the faith.
So who was Rahab? The woman who looked at an invading army and saw the living God, and bet her whole family on it. The Bible never lets her forget where she began, and never lets anyone else use it against her.
If you like seeing how the Hebrew text keeps surprising readers who only know the Sunday-school version, I read the stories this way throughout Read Like a Jew.


