When all the kings of the Amorites that were beyond the Jordan to the west, and all the kings of the Canaanites that were by the sea, heard that the LORD had dried up the waters of the Jordan for the people of Israel until they had crossed over, their heart melted, and there was no longer any spirit in them, because of the people of Israel.
And this is the reason why Joshua circumcised them: all the males of the people who came out of Egypt, all the men of war, had died on the way in the wilderness after they had come out of Egypt.
Though all the people who came out had been circumcised, yet all the people that were born on the way in the wilderness after they had come out of Egypt had not been circumcised.
For the people of Israel walked forty years in the wilderness, till all the nation, the men of war that came forth out of Egypt, perished, because they did not hearken to the voice of the LORD; to them the LORD swore that he would not let them see the land which the LORD had sworn to their fathers to give us, a land flowing with milk and honey.
So it was their children, whom he raised up in their stead, that Joshua circumcised; for they were uncircumcised, because they had not been circumcised on the way.
And the manna ceased on the morrow, when they ate of the produce of the land; and the people of Israel had manna no more, but ate of the fruit of the land of Canaan that year.
When Joshua was by Jericho, he lifted up his eyes and looked, and behold, a man stood before him with his drawn sword in his hand; and Joshua went to him and said to him, "Are you for us, or for our adversaries?"
And he said, "No; but as commander of the army of the LORD I have now come." And Joshua fell on his face to the earth, and worshiped, and said to him, "What does my lord bid his servant?"