Joshua 5:6

6 The people of Israel had moved around in the desert for 40 years. By the end of that time all of the men who were old enough to serve in the army when they left Egypt had died. That's because they hadn't obeyed the Lord. The LORD had taken an oath. He had told them they wouldn't see the land. It's the land he had promised with an oath to their people to give us. It's a land that has plenty of milk and honey.

Joshua 5:6 Meaning and Commentary

Joshua 5:6

For the children of Israel walked forty years in the
wilderness
Wanting a few days, the round number is given: not forty two, as the Septuagint version:

till all the people [that were] men of war, which came out of Egypt,
were consumed;
all that were above twenty years of age, excepting Joshua and Caleb:

because they obeyed not the voice of the Lord;
but murmured against him, and against his servants, and particularly against Aaron, being the high priest; and chiefly because of the report of the spies, and their murmurs then, which so incensed the Lord against them, that he threatened them with an entire consumption of their carcasses, and which accordingly was fulfilled, to which the following clause refers:

unto whom the Lord sware, that he would not show them the land which
the Lord sware unto their fathers that he would give us, a land that
floweth with milk and honey;
see ( Numbers 14:23 Numbers 14:24 ) .

Joshua 5:6 In-Context

4 Here is why Joshua circumcised them. All of the men who came out of Egypt had died. They died while they were going through the Sinai Desert after they had left Egypt. They were the men who were old enough to serve in the army.
5 All of the men who came out had been circumcised. But all of the men who were born in the desert during the journey from Egypt hadn't been circumcised.
6 The people of Israel had moved around in the desert for 40 years. By the end of that time all of the men who were old enough to serve in the army when they left Egypt had died. That's because they hadn't obeyed the Lord. The LORD had taken an oath. He had told them they wouldn't see the land. It's the land he had promised with an oath to their people to give us. It's a land that has plenty of milk and honey.
7 Because they hadn't obeyed him, he raised up their sons to take their place. They were the ones Joshua circumcised. They hadn't been circumcised yet. That's because no one had circumcised them during the journey.
8 So Joshua circumcised all of those men. The whole nation remained in the camp until the men were healed.
Holy Bible, New International Reader's Version® Copyright © 1995, 1996, 1998 by Biblica.   All rights reserved worldwide.