In a moment of dramatic tension and fateful decision, Rahab chooses to protect the Israelite spies from the king of Jericho. She weaves a sophisticated web of physical concealment and verbal deception to ensure their survival. Sensing immediate danger upon hearing the shouts of the king's men outside, she acts swiftly, hiding the spies before the messengers even cross her threshold [רד״ק, אברבנאל].
The primary approach among commentators is that Rahab separated the two men, placing each in a distinct hiding spot. This strategy allowed for faster concealment, prevented them from being instantly recognized as the wanted pair, and ensured that if one were discovered, the other might still escape. Conversely, others suggest that the sheer lack of time forced her to cram both men into a single, narrow space, pressing them together as if they were one [רש״י, צאינה וראינה].
A prominent Midrashic tradition identifies the spies as Caleb and Phinehas, noting that Phinehas existed on the spiritual level of an angel and was therefore invisible. Consequently, Rahab only needed to physically hide Caleb [רש״י, רד״ק, צאינה וראינה, אברבנאל]. Interestingly, some explain that this angelic state only lasted during the day; once night fell, Phinehas reverted to human form, requiring Rahab to secure a hiding place for both men later on [אהבת יהונתן]. Another perspective within this tradition suggests that the locals would have recognized Phinehas from the earlier war with Midian, whereas Caleb was entirely anonymous to them, making Phinehas the only one who truly required concealment [אהבת יהונתן]. Beyond the physical act of hiding the men, Rahab's actions also represent the careful concealment of her secret plan itself [אלשיך, אהבת יהונתן].
A subtle distinction exists in how the spies were hidden at different moments. When the messengers first arrived abruptly, Rahab had no time to fully cover the men. She merely positioned them in a hidden corner out of sight. Only later, once the messengers left, was she able to thoroughly conceal them under the stalks of flax on her roof [מלבי״ם, אברבנאל].
After securing the spies, Rahab confronts the messengers and strategically confirms their suspicions to earn their trust. She readily admits that it is true [מצודת ציון] that the men they are looking for had indeed come to her [מצודת דוד, ביאור שטיינזלץ]. To explain her ignorance of their identities, she claims she did not know where they were from [מצודת ציון]. Some commentators explain that she implied the men had visited her solely for prostitution and departed immediately afterward, a scenario in which she naturally would not have inquired about their names or origins [אברבנאל, נחל שורק]. With remarkable cunning, she uses the spies' own secretive behavior to her advantage. By confirming that they kept their identities hidden and had already fled, she convinces the messengers to leave her home immediately and begin a frantic pursuit outside the city walls [מלבי״ם, אלשיך].