This is the reason Joshua circumcised them: all the people who came out of Egypt, the males, all the men of war, died in the wilderness on the way, after they had come out of Egypt. Bible see other translations

“the people...the males.” God clarifies “the people” as being the men, and “the people” continues in the next verse.

Commentary for: Joshua 5:4