What happened to the men who left Egypt during the Exodus?

They all died before reaching the promised land.

(Because they didn't obey the voice of the Lord.)
For the children of Israel walked forty years in the wilderness, till all the people that were men of war, which came out of Egypt, were consumed, because they obeyed not the voice of the LORD. Joshua 5:6