The city shall be devoted, even it and all that is therein, to Yahweh: only Rahab the prostitute shall live, she and all who are with her in the house, because she hid the messengers that we sent.
because she hid the messengers that we sent; and so preserved them from being taken by the messengers of the king of Jericho, who were sent in pursuit of them. These though sent only by Joshua, without the knowledge of the people, yet it being on their account, and their good, and by him as their head and governor, is ascribed to them also. This fact of Rahab's is observed by him as a reason for sparing her, and those that were with her, when all the rest would be put to the sword; and is mentioned as an instance of her faith, and of the evidence of it, Hebrews 11:31.