after the death of moses, god put joshua in charge of the people. joshua sent two spies to spy on the city of jericho. a woman prostitute called rahab hid these two men and told the enemies they had already left. she hid them on top of her roof, underneath stalks of flax. the spies later promised that they would keep the oath that joshua made with them.