Joshua 5:2-8 New Revised Standard Version (NRSV)
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.[a] 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.
8 When the circumcising of all the nation was done, they remained in their places in the camp until they were healed.