The alarm of the king of Jericho was very natural. He and his people had heard of Israel, and of the Lord being among them. Remember God's promise. Deuteronomy 2:25.
Related Commentaries of Joshua 2:2
Joshua 2:2
2 And it was told the king of Jericho, saying, Behold, there came men in hither to night of the children of Israel to search out the country.