18 here is what you must do: Hang this red rope out the window through which you let us down and gather your entire family with you in your house - father, mother, brothers, and sisters. 19 Anyone who goes out the doors of your house into the street and is killed, it's his own fault - we aren't responsible. But for everyone within the house we take full responsibility. If anyone lays a hand on one of them, it's our fault.
Matthew Henry's Commentary on Joshua 2:18-19
Commentary on Joshua 2:8-21
(Read Joshua 2:8-21)
Rahab had heard of the miracles the Lord wrought for Israel. She believed that his promises would certainly be fulfilled, and his threatenings take effect; and that there was no way of escape but by submitting to him, and joining with his people. The conduct of Rahab proved that she had the real principle of Divine faith. Observe the promises the spies made to her. The goodness of God is often expressed by his kindness and truth, Psalm 117:2; in both these we must be followers of him. Those who will be conscientious in keeping promises, are cautious in making them. The spies make needful conditions. The scarlet cord, like the blood upon the doorpost at the passover, recalls to remembrance the sinner's security under the atoning blood of Christ; and that we are to flee thereto for refuge from the wrath of a justly offended God. The same cord Rahab used for the saving of these Israelites, was to be used for her own safety. What we serve and honour God with, we may expect he will bless, and make useful to us.