Joshua 5:6

5:6 For the children of Israel walked forty years in the wilderness, until all the nation, even the men of war who came forth out of Egypt, were consumed, because they didn't listen to the voice of Yahweh: to whom Yahweh swore that he wouldn't let them see the land which Yahweh swore to their fathers that he would give us, a land flowing with milk and honey.
-World English Bible

Other Translation

5:6 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: unto whom the LORD sware that he would not shew them the land, which the LORD sware unto their fathers that he would give us, a land that floweth with milk and honey.
-King James Version