After the lapse of forty days they returned to Moses and the people, after having crossed through Palestine from end to end. By natural means it would not, of course, have been possible to traverse all the land in so short a time, by God made it possible by "bidding the soil to leap for them," and they covered a great distance in a short time. God knew that Israel would have to wander in the wilderness forty years, a year for every day the spies had spent in Palestine, hence He hastened their progress through the land, that Israel might not have to stay too long in the wilderness.
Moses and the Promised Land of Canaan
Legends of the Jews 4:101