#Why did the people of Israel listen to Joshua and do what Yahweh had commanded Moses?

The people of Israel listened to Joshua because Joshua was full of the spirit of wisdom, and Moses had laid his hands on him. [34:9]