At that time the LORD said to Joshua, “Make for yourself flint knives and circumcise the [new generation of the] sons of Israel as [was done] before.” So Joshua made flint knives and circumcised the sons of Israel at Gibeath-haaraloth. This is the reason why Joshua circumcised them: all the people who came out of Egypt who were males, all the men of war, had died in the wilderness along the way after they left Egypt. All the males who came out were circumcised, but all the males who were born in the wilderness on the way as they left Egypt had not been circumcised. For the Israelites walked forty years in the wilderness, until all the nation, that is, the men of war who came out of Egypt, died because they did not listen to the voice of the LORD; to them the LORD had sworn [an oath] that He would not let them see the land which He had promised to their fathers to give us, a land [of abundance] flowing with milk and honey. So it was their uncircumcised sons whom He raised up in their place, whom Joshua circumcised, because circumcision had not been performed on the way.
Then, when they had finished circumcising all [the males of] the nation, they stayed in their places in the camp until they were healed. Then the LORD said to Joshua, “This day I have rolled away the reproach (derision, ridicule) of Egypt from you.” So the name of that place is called Gilgal (rolling) to this day.
While the Israelites camped at Gilgal they observed the Passover on the evening of the fourteenth day of the month on the desert plains of Jericho. On the day after Passover, on that very day, they ate some of the produce of the land, unleavened bread, and roasted grain. [Lev 23:14] And the manna ceased on the day after they had eaten some of the produce of the land, so that the Israelites no longer had manna, but they ate some of the produce of the land of Canaan during that year.
Now when Joshua was by Jericho, he looked up, and behold, a man was standing opposite 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?” He said, “No; rather I have come now as captain of the army of the LORD.” Then Joshua fell with his face toward the earth and bowed down, and said to him, “What does my lord have to say to his servant?” The captain of the LORD’S army said to Joshua, “Remove your sandals from your feet, because the place where you are standing is holy (set apart to the LORD).” And Joshua did so. [Ex 3:5]