When the Amorite and Canaanite kings across the Jordan hear that the Lord dried up the waters before Israel, their hearts melt and they have no spirit left to face them. Then the Lord tells Joshua to make flint knives and circumcise the sons of Israel again. The text explains why: all the males who came out of Egypt had died in the wilderness for disobedience, and those born on the journey had not been circumcised. After the circumcision the people stay in camp until they heal, and the Lord says that today he has rolled away the reproach of Egypt from them; so the place is called Gilgal.
On the evening of the fourteenth day of the month, the Israelites keep the Passover in the plains of Jericho. The next day they eat the produce of the land, unleavened bread and roasted grain. The manna stops that same day, and from then on Israel is fed by what Canaan produces.
Near Jericho, Joshua lifts his eyes and sees a man standing with a drawn sword. He asks whether the man is for him or for his enemies. The man answers no, he has come as commander of the army of the Lord. Joshua falls on his face to the ground and asks what message he brings. The commander tells him to take off his sandals, because the place where he stands is holy, and Joshua obeys.