Joshua 2:14-21 NIV
“Our lives for your lives!” the men assured her. “If you don’t tell what we are doing, we will treat you kindly and faithfully when the LORD gives us the land.”
So she let them down by a rope through the window, for the house she lived in was part of the city wall. She said to them, “Go to the hills so the pursuers will not find you. Hide yourselves there three days until they return, and then go on your way.”
Now the men had said to her, “This oath you made us swear will not be binding on us unless, when we enter the land, you have tied this scarlet cord in the window through which you let us down, and unless you have brought your father and mother, your brothers and all your family into your house. If any of them go outside your house into the street, their blood will be on their own heads; we will not be responsible. As for those who are in the house with you, their blood will be on our head if a hand is laid on them. But if you tell what we are doing, we will be released from the oath you made us swear.”
“Agreed,” she replied. “Let it be as you say.”
So she sent them away, and they departed. And she tied the scarlet cord in the window.
NIV: New International Version