Bamidbar27:16

יִפְקֹד יְהוָה אֱלֹהֵי הָרוּחֹת לְכָל־בָּשָׂר אִישׁ עַל־הָעֵדָה׃

"Let the Eternal, the God of the spirits of all flesh, appoint a man over the congregation,

Bamidbar 27:16

יִפְקֹד יְהוָה אֱלֹהֵי

Bamidbar / Numbers 27:16 · Pshat

Bamidbar 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

A teacher in a classroom knows: one child needs firmness, another gentleness, a third simply time. Before he leaves, Moshe (Moses) asks for exactly such a leader for the people.

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

Rashi Let the Eternal appoint

When Moshe (Moses) heard the Omnipresent tell him to give the inheritance of Tzelofchad (Zelophehad) to his daughters, he said: "The time has come to ask for my own: let my sons inherit my greatness." The Holy One, blessed is He, said to him: "That is not what I have in mind. Yehoshua (Joshua) deserves to receive the reward of his service: he did not leave the tent." This is what Shlomo (Solomon) said: "Whoever tends a fig tree will eat its fruit" (Mishlei / Proverbs 27:18).

Rashi The God of the spirits

Why is this said? He said before Him: "Master of the world, revealed and known before You is the mind of each one, and they are not like one another. Appoint over them a leader who will bear with each one according to his mind."

Haamek Davar Of the spirits of all flesh

We have already explained above (Bamidbar / Numbers 16:22) that "flesh" means the pleasures of the body. And the spirit of every person, that is, his mind, follows his pleasure. Therefore it is hard to lead Israel in truth. Only a man is needed whose mind is strong without any gain for himself.

Takeaway

Yehoshua served Moshe from his youth and did not leave the tent (Shemot / Exodus 33:11).
"O God, the God of the spirits of all flesh": so Moshe and Aharon called to the Eternal during the rebellion of Korach (Korah) (Bamidbar / Numbers 16:22).
Moshe's sons were named Gershom and Eliezer (Shemot / Exodus 18:3–4).