Joshua 5:6 NIV

6 The Israelites had moved about in the desert1 forty years2 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 that he had solemnly promised their fathers to give us,3 a land flowing with milk and honey.4

References for Joshua 5:6