When David was told about this, he sent messengers to meet them, because they were very embarrassed. The king instructed them, “Stay in Jericho until your beards have re-grown, and then you can return.”
But then the king of Assyria discovered that Hoshea was being disloyal. Hoshea had sent messengers to So, king of Egypt, asking for help, and he also had stopped sending annual tribute to the king of Assyria as he had done previously. So the king of Assyria arrested Hoshea and put him in prison.
Then Elijah said to him, “Please stay here, Elisha, for the Lord has sent me to Jericho.” He replied, “As the Lord lives, and as you live, I will not leave you.” So they went to Jericho.
Then Joshua, son of Nun, secretly sent out two spies from Shittim. “Go and explore the land, especially around Jericho,” he told them. So they went, and stayed at the house of woman named Rahab, a prostitute. There they spent the night.
The king's messengers went chasing after the men down the road that leads to the Jordan River fords. As soon as the pursuers had left, the city gate was shut behind them.