and she said to the men, I know that Yahweh has given you the land, and that the fear of you is fallen on us, and that all the inhabitants of the land melt away before you.
The two spies did attach one condition to their promise, that being, that under no circumstance would the woman betray their mission  (Joshua 2:14).  Also, there was the agreement that the identity of Rahab's house would be indicated by the red cord.