Bamidbar / Numbers 27:16
יִפְקֹד יְהוָה אֱלֹהֵי הָרוּחֹת לְכָל־בָּשָׂר אִישׁ עַל־הָעֵדָה׃
"Let the Eternal, the God of the spirits of all flesh, appoint a man over the congregation,
Pshat פְּשָׁט
A leader for every temper
Rashi: Moshe wanted his sons to inherit his greatness, but the Eternal chose Yehoshua (Joshua), who did not leave the tent. "The God of the spirits" is said because each person's temper is his own, and a leader is needed who will bear with each one. Netziv: a person's mind follows his body's gain, so only one who has no gain of his own can lead the people in truth.
How Rashi and Haamek Davar explain it
Remez רֶמֶז
A request made with strength
Agra DeKala: Moshe (Moses) did not say "appoint, please", as in his prayer for Miryam (Miriam), but "let Him appoint", like a command: one who asks for the needs of the community comes with strength. Hence a lesson: include your own request in the needs of the community. The Baal Shem Tov: the head of a generation raises even people's plain talk and binds the bodily to the spiritual.
How Agra DeKala and Keter Shem Tov explain it
Drash דְּרָשׁ
Faces not alike
Tanchuma: as people's faces are not alike, so their minds are not alike. Therefore there are special blessings on seeing different people and on seeing a great crowd. And therefore Moshe, before his death, asked for a leader who would bear with each one according to his mind.
How Midrash Tanchuma explain it
Sod סוֹד
Wheels and living creatures
Ohev Yisrael: there are three levels in the people, as in the vision of the chariot: the seraphim are the righteous burning with love, the holy living creatures are those who study Torah for its own sake, the wheels are plain people busy earning a living. Good thoughts come to the wheels from the living creatures. Moshe (Moses) was the level of the higher soul, and Yehoshua (Joshua) the level of spirit, so it is he who will lead the people.
How Ohev Yisrael explain it