Joshua 5:4-5

4 This is the reason why Joshua circumcised them: all the males of the people who came out of Egypt, all the warriors, had died during the journey through the wilderness after they had come out of Egypt.
5 Although all the people who came out had been circumcised, yet all the people born on the journey through the wilderness after they had come out of Egypt had not been circumcised.

Joshua 5:4-5 Meaning and Commentary

INTRODUCTION TO JOSHUA 5

The Canaanites being dispirited on the passage of the children of Israel through Jordan, Jos 5:1; Joshua is ordered to circumcise such of the people of Israel that were uncircumcised, Jos 5:2-9; in order to their eating of the passover, which was now to be kept, Jos 5:10; and they being now provided with corn sufficient, the manna ceased, Jos 5:11,12; and there appeared to Joshua a divine Person, in an human form, to encourage and direct him what to do in the conquest of the land, and particularly Jericho, Jos 5:13-15.

Joshua 5:4-5 In-Context

2 At that time the Lord said to Joshua, "Make flint knives and circumcise the Israelites a second time."
3 So Joshua made flint knives, and circumcised the Israelites at Gibeath-haaraloth.
4 This is the reason why Joshua circumcised them: all the males of the people who came out of Egypt, all the warriors, had died during the journey through the wilderness after they had come out of Egypt.
5 Although all the people who came out had been circumcised, yet all the people born on the journey through the wilderness after they had come out of Egypt had not been circumcised.
6 For the Israelites traveled forty years in the wilderness, until all the nation, the warriors who came out of Egypt, perished, not having listened to the voice of the Lord. To them the Lord swore that he would not let them see the land that he had sworn to their ancestors to give us, a land flowing with milk and honey.
7 So it was their children, whom he raised up in their place, that Joshua circumcised; for they were uncircumcised, because they had not been circumcised on the way.