God had commanded (Moses) to take his people to the promise land he had for his people but because if their foolishness they had to wonder in the wilderness for 40 yrs, after the 40 yrs it was mostly a new generation so then the new generation kept traveling to their promise land. All the Israelite's looked up to Moses, and in the bible it say's a cloud in form if pillar would guide them during the day and a pillar of fire in the night.