Joshua 2:18 is the spies’ condition for saving Rahab and her family when Israel attacks Jericho: she must hang a scarlet cord in the window through which she let them escape, and she must gather her relatives into her house. The verse is spoken by the two Israelite spies to Rahab, the innkeeper in Jericho who hid them and then helped them get away over the city wall.
Behold, when we come into the land, tie this line of scarlet thread in the window which you used to let us down. Gather to yourself into the house your father, your mother, your brothers, and all your father’s household.
Joshua 2:18 (WEB)
What Joshua 2:18 Means
The phrase “Behold, when we come into the land” shows the spies speaking about a future moment. They are not yet in Canaan, and they can only promise what will happen when the Israelite army takes the city. The request is not a vague wish for protection. It is a specific agreement with a clear sign attached to it.
The scarlet cord is that sign. It hangs where the spies could see it from outside the wall, marking the house as one to be spared. The verse then says Rahab should “gather to yourself into the house” her father, mother, brothers, and the rest of her family. Protection is tied to being inside the marked house, so the promise does not cover someone who stays outside.
The verse does not promise that Rahab will be safe no matter what she does, or that her household will be spared without the sign and without staying put. It sets out a condition that she must meet. Later verses in the chapter add that anyone who leaves the house is on their own, which makes the arrangement very plain.
The Context of Joshua 2:18
Joshua is traditionally attributed to Joshua, Moses’ successor, though the book’s final form was probably edited later. It tells the story of Israel’s entry into Canaan and the conquest of the land under Joshua’s leadership. Chapter 2 opens the account of Jericho, the first city Israel meets, and it introduces Rahab as a woman who recognizes the power of the God of Israel.
Just before verse 18, Rahab lets the spies down by a cord through the window, because her house is built into the city wall. She then asks for the protection the spies promise in verse 18. In the verses that follow, she ties the scarlet cord in the window and the spies leave. Read in that sequence, verse 18 is a practical arrangement made in the middle of a dangerous escape, and it explains how Rahab’s family came to be spared when the city fell.
Key Phrases in Joshua 2:18
Hebrews 11:31
By faith, Rahab the prostitute, didn’t perish with those who were disobedient, having received the spies in peace.
(WEB)
This verse names Rahab among the people of faith, presenting her act of hiding the spies as an expression of trust. Reading it beside Joshua 2:18 helps you see that the scarlet cord was tied by someone the writer of Hebrews regarded as faithful.
Matthew 1:5
Salmon became the father of Boaz by Rahab. Boaz became the father of Obed by Ruth. Obed became the father of Jesse.
(WEB)
This verse places Rahab in the genealogy of Jesus, showing that the household spared at Jericho became part of the story of God’s people. It connects the small, practical promise in Joshua 2:18 to a much larger line of faithfulness that runs through Israel’s history.
A Short Prayer From Joshua 2:18
Lord, you see the places in my life where I am afraid for the people I love. Help me to notice the signs of your care around my home and to trust the protection you have promised. Show me how to gather my family into a shared life of peace, and give me courage to act on what I have learned from your word today. Amen.
