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.