Yehoshua sends two spies, Kaleiv and Pinchas, to investigate Yericho, and they meet Rachav, who in turn saves them from the officers of the king of Yericho, they form a pact with her, eventually returning to Yehoshua with a report of the terror the inhabitants of Canaan have of the Jews.