Joshua 2:15
14 The men said to her, “If you die, may we die too! If you do not report what we’ve been up to, then we will show unswerving allegiance to you when the Lord hands the land over to us.” 15 Then Rahab let them down by a rope through the window. (Her house was built as part of the city wall; she lived in the wall.) 16 She told them, “Head to the hill country, so the ones chasing you don’t find you. Hide from them there for three days, long enough for those chasing you to return. Then you can be on your way.”
1 Samuel 19:12
11 Saul sent messengers to David’s house to guard it and to kill him in the morning. Then David’s wife Michal told him, “If you do not save yourself tonight, tomorrow you will be dead!” 12 So Michal lowered David through the window, and he ran away and escaped. 13 Then Michal took a household idol and put it on the bed. She put a quilt made of goats’ hair over its head and then covered the idol with a garment.
Notes and References
"... Another body of evidence is the presence of numerous cases of repeated prose images. A scene that is pictured in one story recurs in another part of the collection, along with some recurring word or phrase to confirm that the parallel pictures are related ... Both the deathbed scene of Jacob in Genesis and the deathbed scene of David in the Court History picture the father bowing on his bed to his own son (Genesis 47:31; 1 Kings 1:47). The J story of Shechem (Genesis 34:24) and the Joshua story of the Israelites’ arrival in the land (Joshua 5:8) both depict cases of men sitting and healing after circumcision; and both refer to the absence of circumcision as “a disgrace” (Genesis 34:14; Joshua 5:9). There are two scenes in which women enable men to escape when they are being sought by a king’s guards - a prostitute, Rahab, thus saves two spies whom Joshua sends into Jericho; and David’s wife Michal thus saves him from King Saul in the Court History—and both women are pictured as saving the men in the same manner and in the same wording: “And she let them down by a rope through the window” (Joshua 2:15; 1 Samuel 19:12) ..."
Friedman, Richard Elliott The Hidden Book in the Bible (p. 29) Harper San Francisco, 1998