Joshua 2:19-21
2:19 Anyone who leaves your house will be responsible for his own death – we are innocent in that case! But if anyone with you in the house is harmed, we will be responsible.
2:20 If you should report what we’ve been up to, we are not bound by this oath you made us swear.”
2:21 She said, “I agree to these conditions.” She sent them on their way and then tied the red rope in the window.
Joshua 6:17
6:17 The city and all that is in it must be set apart for the Lord, except for Rahab the prostitute and all who are with her in her house, because she hid the spies we sent.
Joshua 6:22-25
6:22 Joshua told the two men who had spied on the land, “Enter the prostitute’s house and bring out the woman and all who belong to her as you promised her.”
6:23 So the young spies went and brought out Rahab, her father, mother, brothers, and all who belonged to her. They brought out her whole family and took them to a place outside the Israelite camp.
6:24 But they burned the city and all that was in it, except for the silver, gold, and bronze and iron items they put in the treasury of the Lord’s house.
6:25 Yet Joshua spared Rahab the prostitute, her father’s family, and all who belonged to her. She lives in Israel to this very day because she hid the messengers Joshua sent to spy on Jericho.
Hebrews 11:31
11:31 By faith Rahab the prostitute escaped the destruction of the disobedient, because she welcomed the spies in peace.