
π Who Was Rahab in the Bible? The Harlot in the Family Line of Jesus
Every city has someone people talk about in whispers.
Someone whose past follows her every time she walks outside.
In Jericho, that woman was Rahab.
She ran an inn built right into the city wall, the kind of place respectable people avoided in daylight. Scripture calls her a harlot, plainly, without softening the word one bit.
π Then one night, two strangers knocked on her door, and Rahab made one brave choice that changed the entire direction of her life.
That single choice pulled her out of a doomed city, into the nation of Israel, and eventually into the family line of the Messiah Himself.
Maybe you know what it feels like to believe your past has already decided your future.
A mistake everyone remembers. A label that follows you into every new room.
You wonder if God could really use someone like you.
β If God can use a woman with Rahab's reputation to help save His people and shape the line of Jesus, what does that say about the story He wants to write with your life?
This is the full story of Rahab in the Bible, told in order from Joshua 2 all the way through the New Testament. Who she was, what she risked, and why her name still shows up three more times after her own story in Joshua ends.
Let's start with who she actually was.
Who Rahab Was
Rahab lived in Jericho, an ancient walled city in Canaan, the land Israel was about to enter. Canaan was not part of Israel yet. Other nations lived there, and the people of Jericho did not worship the LORD.
Rahab ran a house built into the city wall itself. Many Bible teachers believe it worked as an inn where travelers could pay to stay the night, and Scripture describes her plainly as a harlot, a woman who sold herself for sex.
π Her story is told in two chapters, Joshua 2 and Joshua 6, right at the start of Israel's entry into the promised land.
Joshua, the leader who took over after Moses died, sent two spies into Jericho to look over the city before Israel attacked it. Of everywhere in the city they could have gone, those two men ended up staying at Rahab's house.
π‘ Nobody chose Rahab's line of work for her by accident. In that culture, a woman with no husband and no father to protect her often had very few ways to survive. Scripture never excuses what she did. It also never pretends her story stops there.
Now here is how it actually happened.
Rahab's Story
1. Two Spies at Rahab's Door
Joshua sent two men out from the Israelite camp at Shittim to scout Jericho before the attack. They needed a place to stay without drawing attention.
"And Joshua the son of Nun sent out of Shittim two men to spy secretly, saying, Go view the land, even Jericho. And they went, and came into an harlot's house, named Rahab, and lodged there."
Scripture never explains why they picked her house. An inn built into the wall was a natural place for strangers to blend in and stay unnoticed.
π Whatever their reason for choosing it, God was already setting something up far bigger than a scouting trip.
2. A Knock, a Lie, and a Roof Full of Flax
Word got back to the king of Jericho that Israelite spies were inside the city, staying at Rahab's house. His men came straight to her door.
"And the king of Jericho sent unto Rahab, saying, Bring forth the men that are come to thee, which are entered into thine house: for they be come to search out all the country."
Rahab had already hidden the two men. She lied straight to the king's messengers.
"And the woman took the two men, and hid them, and said thus, There came men unto me, but I wist not whence they were:"
β οΈ Notice this plainly. Rahab lied. Scripture records it honestly and does not hide that it happened.
While the king's men chased after the spies toward the Jordan River, the two men were actually hidden on Rahab's own roof, under stalks of flax laid out to dry.
"But she had brought them up to the roof of the house, and hid them with the stalks of flax, which she had laid in order upon the roof."
π‘ Roofs in that culture were flat and used for storage and work, so flax drying in the sun would not have looked out of place at all. It was a simple, ordinary looking hiding spot.
3. Rahab's Confession of Faith
Once the danger passed, Rahab climbed up to talk with the two men on her roof. What she said next is remarkable. She had never worshipped the LORD in her life, but she already believed in Him.
"And she said unto the men, I know that the LORD hath given you the land, and that your terror is fallen upon us, and that all the inhabitants of the land faint because of you. For we have heard how the LORD dried up the water of the Red sea for you, when ye came out of Egypt; and what ye did unto the two kings of the Amorites, that were on the other side Jordan, Sihon and Og, whom ye utterly destroyed. And as soon as we had heard these things, our hearts did melt, neither did there remain any more courage in any man, because of you: for the LORD your God, he is God in heaven above, and in earth beneath."
π Read that last line again. The LORD your God, he is God in heaven above, and in earth beneath. A pagan woman in a pagan city said that about Israel's God before a single Israelite soldier had even crossed the Jordan River.
β She had heard about the Red Sea crossing, about forty years earlier, and about two recent victories over enemy kings. She never saw any of it happen with her own eyes. She only heard about it, and she believed anyway.
π‘ Faith like Rahab's is not measured by how much you have seen. It is measured by what you do with what you have heard. If fear is the thing keeping you from acting on what you believe, what the Bible says about fear is worth reading right after this one.
4. A Bargain for Her Family's Life
Rahab did not just confess faith with her mouth. She acted on it, and she asked for one thing in return for what she had already risked.
"Now therefore, I pray you, swear unto me by the LORD, since I have shewed you kindness, that ye will also shew kindness unto my father's house, and give me a true token: And that ye will save alive my father, and my mother, and my brethren, and my sisters, and all that they have, and deliver our lives from death."
π She was not thinking only of herself. She asked for her father, her mother, her brothers, and her sisters, along with everyone who belonged to them.
π‘ Real faith tends to reach past the person who has it. Rahab believed enough in what was coming that she wanted her whole family covered by it, not just herself.
5. The Scarlet Cord in the Window
The spies agreed, on one condition, and made her swear an oath first.
"And the men answered her, Our life for yours, if ye utter not this our business. And it shall be, when the LORD hath given us the land, that we will deal kindly and truly with thee."
They gave her one clear instruction to follow when the attack came.
"Behold, when we come into the land, thou shalt bind this line of scarlet thread in the window which thou didst let us down by: and thou shalt bring thy father, and thy mother, and thy brethren, and all thy father's household, home unto thee."
A scarlet cord hanging in her window would mark her house so the Israelite army knew to pass over it and spare everyone inside. Rahab did exactly what she was told.
"And she said, According unto your words, so be it. And she sent them away, and they departed: and she bound the scarlet line in the window."
A popular tradition connects that scarlet cord to the blood painted on the doorposts at the first Passover in Egypt, both signs marking who would be spared when judgment arrived. Scripture never actually states that connection anywhere in the text, so hold that comparison loosely. What is written plainly is enough on its own: one cord in one window, tied by one woman's obedience.
6. The Walls Fall and Rahab Walks Out Free
Weeks later, Israel marched around Jericho for seven days, and on the seventh day the walls fell flat. Before the destruction began, Joshua kept the promise made in Rahab's house.
"And the young men that were spies went in, and brought out Rahab, and her father, and her mother, and her brethren, and all that she had; and they brought out all her kindred, and left them without the camp of Israel."
Every single person in Rahab's house survived while the rest of the city was destroyed. Not because of anything they did that day. Because of a scarlet cord tied in one window, weeks earlier.
"And Joshua saved Rahab the harlot alive, and her father's household, and all that she had; and she dwelleth in Israel even unto this day; because she hid the messengers, which Joshua sent to spy out Jericho."
π She dwelleth in Israel even unto this day. The outsider from a doomed city became a permanent part of God's own people. Her past did not follow her into her new life. Her faith did.
Like Leah, another woman whose life looked overlooked from the outside, Rahab ended up written straight into the story God was building toward the Messiah.
7. Rahab in the New Testament
Rahab's story does not end in the book of Joshua. Three New Testament writers bring her back up, well over a thousand years later.
"By faith the harlot Rahab perished not with them that believed not, when she had received the spies with peace."
Hebrews 11 lists Rahab in the great chapter on faith, right alongside Abraham, Moses, and Noah.
π Out of everyone in Israel's long history, the writer of Hebrews picked a Canaanite harlot to prove that faith is what saves a person.
"Likewise also was not Rahab the harlot justified by works, when she had received the messengers, and had sent them out another way?"
James makes an important point right alongside what Hebrews already said. Faith without action is not real faith. Rahab did not just believe something quietly in her heart. She hid two spies, lied to protect them, and hung a scarlet cord in her own window.
π‘ Her actions were the proof that her faith was real. If you want to understand how faith and salvation fit together, how do you know you are saved walks through that question directly.
"And Salmon begat Booz of Rachab; and Booz begat Obed of Ruth; and Obed begat Jesse;"
The King James Version spells her name Rachab here and calls her son Booz, the same man most readers know as Boaz. This is the same Rahab from Jericho. Boaz later married Ruth, and their family line ran straight through King David and on to Jesus.
β The woman with Jericho's most shameful reputation became an ancestor of the Messiah Himself.

Lessons From Rahab's Life
1. Your past does not disqualify you from God's plan
Rahab was a Canaanite, an outsider to God's people, and a woman whose profession was considered shameful even in her own city. None of that stopped God from using her.
π If God could write Rahab into the family line of Jesus, your past is not the wall you think it is.
2. Faith has to move, or it is not really faith
Rahab did not just believe something true about God. She acted on it, at real risk to her own life. James points to her as proof that faith with no action attached to it is not the kind of faith Scripture is describing.
β οΈ Agreeing with the right things about God and never once acting on them is not what the Bible calls faith.
3. God rewards small, risky obedience
Rahab did not do anything huge by the world's standards. She hid two men, told a lie to protect them, and tied a cord in a window. Each step was small, but each one was risky.
β God did not ask Rahab for a spotless life. He asked for one brave choice, and she gave it.
4. One person's faith can save a whole family
Rahab asked for her father, her mother, her brothers, and her sisters to be spared, and every single one of them was.
π‘ Her faith did not only save herself. It reached backward into her family and pulled them out with her.
5. God's story is bigger than the reputation people give you
Jericho knew Rahab as the harlot. The Bible calls her that too, honestly, without ever hiding it. But Hebrews calls her a woman of faith, and Matthew calls her the mother of Boaz.
π The label people put on you is not the last word God gets to write about your life.
Key Verses From Rahab's Story
1. Joshua 2:11
"And as soon as we had heard these things, our hearts did melt, neither did there remain any more courage in any man, because of you: for the LORD your God, he is God in heaven above, and in earth beneath."
This is the clearest statement of faith spoken by anyone in the whole book of Joshua.
A woman who had never worshipped the LORD said it before a single Israelite entered the land.
π‘ Faith is not reserved for people who grew up around it.
2. Joshua 6:25
"And Joshua saved Rahab the harlot alive, and her father's household, and all that she had; and she dwelleth in Israel even unto this day; because she hid the messengers, which Joshua sent to spy out Jericho."
Notice the Bible still calls her the harlot here, right in the same sentence where she is saved.
π Scripture never hides her past to make her rescue look cleaner. It shows both at once.
3. Hebrews 11:31
"By faith the harlot Rahab perished not with them that believed not, when she had received the spies with peace."
Written over a thousand years after Jericho fell.
Her name still opens with the same word Jericho used against her, harlot, right next to the word faith.
π‘ God is not embarrassed by your history when your faith is real.
4. James 2:25
"Likewise also was not Rahab the harlot justified by works, when she had received the messengers, and had sent them out another way?"
James asks it as a question because the answer is obvious to anyone who knows the story.
π What she believed and what she did were never two separate things.
5. Matthew 1:5
"And Salmon begat Booz of Rachab; and Booz begat Obed of Ruth; and Obed begat Jesse;"
One short line in a long list of names.
It quietly places Rahab in the direct family line of Jesus Christ.
β God does not just forgive the past. He sometimes builds His future right out of it.

Frequently Asked Questions About Rahab
Was Rahab really a prostitute?
Yes. Joshua 2:1 calls her a harlot in plain language, and Hebrews 11:31 and James 2:25 both use the same word centuries later. Scripture never tries to soften or hide this fact about her past.
Why did God choose to use a harlot?
Scripture never explains God's reasoning directly, but the pattern shows up again and again in the Bible. God consistently chooses people the world would never pick, so that what happens next is clearly His doing, not theirs. Rahab's changed life points straight back to God, not to her own record.
How could God use someone with Rahab's past?
God did not use Rahab because of her past. He used her because of the faith she showed in the moment the spies arrived at her door. The Bible measures her by what she believed and did once that moment came, not by everything that came before it.
What is the scarlet cord in Rahab's story?
It was a length of scarlet thread the spies told Rahab to tie in her window. It marked her house so the Israelite army would know to spare everyone inside once Jericho fell. Some readers connect it to the blood on the doorposts at the first Passover, but Scripture never states that connection directly.
Is Rahab in the genealogy of Jesus?
Yes. Matthew 1:5 names her, spelled Rachab in the King James Version, as the mother of Boaz. Boaz married Ruth, and their family line runs through King David straight to Jesus. She is one of only a few women named in that whole genealogy.
Did Rahab lie, and was that okay with God?
Yes, she lied to the king's men about the spies. Scripture records the lie honestly and never pretends it did not happen. It also never says God approved of the lie itself. What Hebrews and James praise is her faith and her courage to protect God's people, not the method she chose to do it.
What happened to Rahab after Jericho fell?
Joshua 6:25 says she and her family were brought out safely and she lived among the Israelites from then on. Matthew's genealogy shows her as the mother of Boaz, which means she became a permanent part of God's people and eventually part of David's own family tree.
Who did Rahab marry?
The Bible does not say directly, but Matthew 1:5 names Boaz as her son, which means she married an Israelite man at some point after Jericho fell. Some later Jewish writings name her husband as Salmon, one of the men in that same genealogy, though Scripture itself never spells this out.
What is the difference between how Hebrews and James describe Rahab's faith?
Hebrews 11:31 praises her faith itself, the belief that saved her from destruction. James 2:25 praises the actions that came out of that faith, hiding the spies and sending them out safely. Together the two verses show the same truth from two angles. Real faith believes, and real faith acts.
What can we learn from Rahab today?
That God is not looking for a clean record before He uses someone. He is looking for faith that is willing to act, even when it is risky and even when your past looks nothing like it should. Rahab is proof that one honest, brave choice can change the entire direction of a life.
Final Thoughts
Rahab started her story as the woman with the worst reputation in Jericho.
She ends it named in the New Testament three more times, and written permanently into the family line of Jesus.
π Her past did not disqualify her.
π Her faith did not stay quiet. It moved her to act, at real risk to her own life.
π God took one brave choice and used it to help shape the story of the Messiah.
If you have ever felt like your history has already decided what God can do with you, read Joshua 2 tonight. Watch how God moves toward a woman nobody in her own city would have chosen.
He is not asking you for a spotless past. He is asking for the same thing He asked of Rahab. One honest, brave step of faith, right where you are.
Keep Growing With Bible Buddy
Inside Bible Buddy, you will find:
- π Verse by verse explanations in plain English
- π± Daily devotionals that meet you where you are
- π₯ A reading streak that keeps you coming back one day at a time
- π€ A community of believers walking the same road
It is completely free. No pressure, no credit card, no account needed to begin.
Just you, God's Word, and a little help understanding it.
Thousands of Christians are already reading this way, one day at a time. There is room for you.