Joshua 2:18tiqvah
unless, when we come into the land, you tie this cord of scarlet thread in the window through which you let us down, and gather to yourself into the house your father and your mother and your brothers and all your father's household.
Rahab's scarlet cord marks her household for rescue when Israel enters the land.
Genesis 38:18patil
He said, "What pledge shall I give you?" And she said, "Your seal and your cord, and your staff that is in your hand." So he gave {them} to her and went in to her, and she conceived by him.
Judah's cord given as a personal pledge to Tamar.