Rahab
The name Rahab carries two distinct freight loads in the Old and New Testaments. The first is a woman of Jericho — a whore who shelters Israel's spies, confesses Yahweh, is spared at the city's destruction, and is later named in the genealogy of the Messiah and praised as an exemplar of faith and works. The second is a poetic name for a defeated chaos power, applied especially to Egypt. Both senses share the one entry; the UPDV witnesses sustain the same split.
The Woman of Jericho
Joshua launches the Jericho campaign with a covert reconnaissance: "And Joshua the son of Nun sent out of Shittim two men as spies secretly, saying, Go, view the land, and Jericho. And they went and came into the house of a whore whose name was Rahab, and lay there" (Jos 2:1). When the king of Jericho demands the spies' surrender, Rahab hides them under stalks of flax on her roof and sends the pursuers off on a false trail toward the Jordan fords (Jos 2:2-7).
What follows is the substantive turn. Rahab climbs to the roof and addresses the men with what is, in form, a confession of Yahweh's lordship: "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⁺" (Jos 2:9). She names the Red Sea and the defeat of Sihon and Og as the events that have melted Canaanite resolve, and concludes, "for Yahweh your⁺ God, he is God in heaven above, and on earth beneath" (Jos 2:11).
She then asks for and receives a covenant for her household: "Now therefore, I pray you⁺, swear to me by [the Speech of] Yahweh, since I have dealt kindly with you⁺, that you⁺ also will deal kindly with my father's house, and give me a true token; and that you⁺ will save alive my father, and my mother, and my brothers, and my sisters, and all who they have, and will deliver our souls from death" (Jos 2:12-13). The spies bind themselves: "Our soul for yours⁺, if you⁺ do not utter this business of ours" (Jos 2:14). She lets them down by a cord through her wall-built window (Jos 2:15), and they impose two terms — a scarlet thread tied in that same window, and the gathering of all her kin into her house (Jos 2:17-20). She agrees and binds the scarlet line in place (Jos 2:21).
The Sparing at Jericho's Fall
When the city falls, the herem is total — but with one named exemption. Joshua's pre-assault charge is unambiguous: "And the city will be devoted, even it and all that is in it, to Yahweh: only Rahab the whore will live, she and all who are with her in the house, because she hid the messengers whom we sent" (Jos 6:17). After the wall falls flat and the army has destroyed every man, woman, beast, "young and old," with the sword (Jos 6:20-21), Joshua sends the original two spies on the rescue: "Go into the whore's house, and bring out from there the woman, and all who she has, as you⁺ swore to her" (Jos 6:22). They extract Rahab, her father, mother, brothers, and "all her kindred," setting them outside the camp of Israel (Jos 6:23). The city burns; the metals go to Yahweh's treasury (Jos 6:24).
The narrator then closes the loop with a permanence note: "But Rahab the whore, and her father's household, and all who she had, Joshua saved alive; and she dwelt in the midst of Israel to this day, because she hid the messengers, whom Joshua sent to spy out Jericho" (Jos 6:25).
In the Line of Messiah
The Matthean genealogy names Rahab in the Davidic descent: "and Salmon begot Boaz from Rahab; and Boaz begot Obed from Ruth; and Obed begot Jesse" (Mt 1:5). She stands one generation upstream of Boaz, two upstream of Obed, three upstream of Jesse, four upstream of David — a Canaanite woman of Jericho written into the line that produces the king and, in Matthew's frame, the Messiah.
Faith and Works
Two New Testament writers cite Rahab as a paradigm — and they cite her for opposite-sounding reasons that the UPDV holds together by the unity of her one act.
Hebrews places her in the faith roll-call immediately after the fall of Jericho: "By faith Rahab the whore did not perish with those who were disobedient, having received the spies with peace" (He 11:31). What spares her from the fate of the disobedient Jerichoites is, in Hebrews' reading, faith — and the faith is identified by the act of welcoming the messengers.
James draws on the same scene to make the converse point: "And in like manner wasn't also Rahab the whore justified by works, in that she received the messengers, and sent them out another way?" (Jas 2:25). The works in question are exactly the works of Joshua 2 — receiving the spies and sending them out by the alternate route over the wall. James pairs her with Abraham (Jas 2:21-23) as a second witness that justifying faith does not stand alone.
Rahab as a Name for Egypt and Chaos
The second sense is poetic. "Rahab" becomes a byword for a defeated power — sometimes specifically Egypt, sometimes the primeval sea-monster, sometimes both at once.
Psalm 87, listing the nations that will one day be reckoned among Zion's natives, names it among the great empires: "I will make mention of Rahab and Babylon as among those who know me: Look, Philistia, and Tyre, with Ethiopia: This [man] was born there" (Ps 87:4). Pairing with Babylon, and the company of Philistia, Tyre, and Ethiopia, places Rahab in the register of named gentile powers.
Psalm 89 puts the name in a creation/Exodus victory frame: "You have broken Rahab in pieces, as one who is slain; You have scattered your enemies with the arm of your strength" (Ps 89:10).
Isaiah twice uses the term against Egypt directly. The first instance is an explicit equation and a play on inertia: "For Egypt helps in vain, and to no purpose: therefore I have called her Rahab that sits still" (Isa 30:7). The second couples Rahab with "the monster" and addresses Yahweh's arm in language that recalls both creation and the sea crossing: "Awake, awake, put on strength, O arm of Yahweh; awake, as in the days of old, the generations of ancient times. Is it not you who cut Rahab in pieces, who pierced the monster?" (Isa 51:9).
In each case the name marks a power Yahweh has subdued — a usage held entirely apart in the canon from the woman of Jericho who sheltered the spies.