2 At that time the Lord said to Joshua, "Make flint knives and circumcise the people of Israel again the second time." 3 So Joshua made flint knives, and circumcised the people of Israel at Gibeath-haaraloth. 4 And this is the reason why Joshua circumcised them: all the males of the people who came out of Egypt, all the men of war, had died on the way in the wilderness after they had come out of Egypt. 5 Though all the people who came out had been circumcised, yet all the people that were born on the way in the wilderness after they had come out of Egypt had not been circumcised. 6 For the people of Israel walked forty years in the wilderness, till all the nation, the men of war that came forth out of Egypt, perished, because they did not hearken to the voice of the Lord; to them the Lord swore that he would not let them see the land which the Lord had sworn to their fathers to give us, a land flowing with milk and honey. 7 So it was their children, whom he raised up in their stead, that Joshua circumcised; for they were uncircumcised, because they had not been circumcised on the way.
Matthew Henry's Commentary on Joshua 5:2-7
Commentary on Joshua 5:1-9
(Read Joshua 5:1-9)
How dreadful is their case, who see the wrath of God advancing towards them, without being able to turn it aside, or escape it! Such will be the horrible situation of the wicked; nor can words express the anguish of their feelings, or the greatness of their terror. Oh that they would now take warning, and before it be too late, flee for refuge to lay hold upon that hope set before them in the gospel! God impressed these fears on the Canaanites, and dispirited them. This gave a short rest to the Israelites, and circumcision rolled away the reproach of Egypt. They were hereby owned to be the free-born children of God, having the seal of the covenant. When God glorifies himself in perfecting the salvation of his people, he not only silences all enemies, but rolls back their reproaches upon themselves.