Joshua 5:4

4 Now this is why he did so: All those who came out of Egypt—all the men of military age—died in the wilderness on the way after leaving Egypt.

Joshua 5:4 in Other Translations

KJV
4 And this is the cause why Joshua did circumcise: All the people that came out of Egypt, that were males, even all the men of war, died in the wilderness by the way, after they came out of Egypt.
ESV
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 in the wilderness on the way after they had come out of Egypt.
NLT
4 Joshua had to circumcise them because all the men who were old enough to fight in battle when they left Egypt had died in the wilderness.
MSG
4 This is why Joshua conducted the circumcision. All the males who had left Egypt, the soldiers, had died in the wilderness on the journey out of Egypt.
CSB
4 This is the reason Joshua circumcised [them]: All the people who came out of Egypt who were males-all the men of war-had died in the wilderness along the way after they had come out of Egypt.

Joshua 5:4 Meaning and Commentary

Joshua 5:4

And this [is] the cause why Joshua did circumcise
Or the reason of the command given him to circumcise the children of Israel at this time, namely, what follows:

all the people that came out of Egypt [that were] males, [even] all
the men of war;
meaning such that were twenty years old, and upwards:

died in the wilderness, by the way, after they came out of Egypt;
not directly, but in a course of forty years, as they journeyed through the wilderness; this is to be understood with an exception of Joshua, Caleb, Eleazar but then there was a large number who were under twenty years of age, that came out of Egypt, and were now living.

Joshua 5:4 In-Context

2 At that time the LORD said to Joshua, “Make flint knives and circumcise the Israelites again.”
3 So Joshua made flint knives and circumcised the Israelites at Gibeath Haaraloth.
4 Now this is why he did so: All those who came out of Egypt—all the men of military age—died in the wilderness on the way after leaving Egypt.
5 All the people that came out had been circumcised, but all the people born in the wilderness during the journey from Egypt had not.
6 The Israelites had moved about in the wilderness forty years until all the men who were of military age when they left Egypt had died, since they had not obeyed the LORD. For the LORD had sworn to them that they would not see the land he had solemnly promised their ancestors to give us, a land flowing with milk and honey.

Cross References 2

Scripture quoted by permission.  Quotations designated (NIV) are from THE HOLY BIBLE: NEW INTERNATIONAL VERSION®.  NIV®.  Copyright © 1973, 1978, 1984, 2011 by Biblica.  All rights reserved worldwide.