All the Amorite kings on the west side of the Jordan and all the Canaanite kings near the sea heard that the LORD had dried up the water of the Jordan before the Israelites until they had crossed over. Then their hearts melted. They lost all courage because of the Israelites.
References for Joshua 5:1
At that time the LORD said to Joshua, "Make yourself flint knives. Circumcise the Israelites for a second time."
References for Joshua 5:2
So Joshua made flint knives for himself. He circumcised the Israelites at Foreskins Hill.
This is the reason Joshua did so: All the people who went out of Egypt, that is, all the men who were soldiers, had died in the desert on the way after they left Egypt.
All the people who went out were circumcised. But none of the people born in the desert on the way after they had left Egypt had been circumcised.
This was because the Israelites journeyed forty years in the desert until the whole nation died off. These were the men old enough to fight who went out from Egypt and who hadn't obeyed the LORD. The LORD had pledged to them never to show them the land that the LORD had pledged to their ancestors to give us. It is a land full of milk and honey.
Joshua circumcised their children, the ones the LORD had set in their place. They were uncircumcised because they hadn't been circumcised on the way.
After the whole nation had undergone circumcision, they remained in the camp until they got well again.
Then the LORD said to Joshua, "Today I have rolled away from you the disgrace of Egypt." So the place was called Gilgal, as it is today.
References for Joshua 5:9
The Israelites camped in Gilgal. They celebrated Passover on the evening of the fourteenth day of the month on the plains of Jericho.
References for Joshua 5:10
On the very next day after Passover, they ate food produced in the land: unleavened bread and roasted grain.
The manna stopped on that next day, when they ate food produced in the land. There was no longer any manna for the Israelites. So that year they ate the crops of the land of Canaan.
When Joshua was near Jericho, he looked up. He caught sight of a man standing in front of him with his sword drawn. Joshua went up and said to him, "Are you on our side or that of our enemies?"
References for Joshua 5:13
He said, "Neither! I'm the commander of the LORD's heavenly force. Now I have arrived!" Then Joshua fell flat on his face and worshipped. Joshua said to him, "What is my master saying to his servant?"
The commander of the LORD's heavenly force said to Joshua, "Take your sandals off your feet because the place where you are standing is holy." So Joshua did this.