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.
God’s special messenger appeared to Joshua to remind him that God was the commander of Israel’s army. This messenger was so closely identified with God that Joshua fell at his feet and worshipped. To him it appeared that God had temporarily taken human form (13-15).