In Joshua 2, two of Joshua's men are sent ahead of them to spy out the people and the land of Jericho. But, the King of Jericho found out about their plans and tried to stop them, but they were kept hidden and safe by a woman named Rahab. Joshua's men were grateful and agreed to be merciful to her family when they returned to claim the promised land.