Now when all the Amorite kings west of the Jordan and all the Canaanite kings along the coast heard how the LORD had dried up the Jordan before the Israelites until they had crossed over, their hearts melted in fear and they no longer had the courage to face the Israelites.
At that time the LORD said to Joshua, “Make flint knives and circumcise the Israelites again.” So Joshua made flint knives and circumcised the Israelites at Gibeath Haaraloth.
Now this is why he did so: All those who came out of Egypt—all the men of military age—died in the wilderness on the way after leaving Egypt. All the people that came out had been circumcised, but all the people born in the wilderness during the journey from Egypt had not. The Israelites had moved about in the wilderness forty years until all the men who were of military age when they left Egypt had died, since they had not obeyed the LORD. For the LORD had sworn to them that they would not see the land he had solemnly promised their ancestors to give us, a land flowing with milk and honey. So he raised up their sons in their place, and these were the ones Joshua circumcised. They were still uncircumcised because they had not been circumcised on the way. And after the whole nation had been circumcised, they remained where they were in camp until they were healed.
Then the LORD said to Joshua, “Today I have rolled away the reproach of Egypt from you.” So the place has been called Gilgal to this day.
On the evening of the fourteenth day of the month, while camped at Gilgal on the plains of Jericho, the Israelites celebrated the Passover. The day after the Passover, that very day, they ate some of the produce of the land: unleavened bread and roasted grain. The manna stopped the day after they ate this food from the land; there was no longer any manna for the Israelites, but that year they ate the produce of Canaan.
Now when Joshua was near Jericho, he looked up and saw a man standing in front of him with a drawn sword in his hand. Joshua went up to him and asked, “Are you for us or for our enemies?”
“Neither,” he replied, “but as commander of the army of the LORD I have now come.” Then Joshua fell facedown to the ground in reverence, and asked him, “What message does my Lord have for his servant?”
The commander of the LORD’s army replied, “Take off your sandals, for the place where you are standing is holy.” And Joshua did so.