יִפְקֹ֣ד יְהוָ֔ה אֱלֹהֵ֥י הָרוּחֹ֖ת לְכָל־בָּשָׂ֑ר אִ֖ישׁ עַל־הָעֵדָֽה׃
זאָל ה׳ דער גאָט פֿון די גײַסטער פֿון אַלע באַשעפֿענישן אױפֿזעצן אַ מאַן איבער דער עדה,
Rashi
יפקד ה׳ LET THE LORD … SET [A MAN OVER THE CONGREGATION] — When Moses heard that the Omnipresent said to him, “Give the inheritance of Zelophehad to his daughters”, he said to himself, “The time has come that I should ask something that I want — that my sons should inherit my high position”. God replied to him, “Not thus has entered My mind; Joshua deserves to receive the reward of his ministrations, because “he has never departed from out the tent” (Exodus XXXIII 11). — This is what Solomon said, (Proverbs 27:18) ‘‘Whoso keepeth the fig-tree shall eat the fruit thereof, [and he that waiteth on his master shall be honoured]” (Midrash Tanchuma, Pinchas 11).
Mizrachi
...And I have not known what forced the Sages, may their memory be blessed, that they should say that this section is connected with the distant section of inheritances (27:7); and not to "Go up to the mountain..." (27:12-15), which is adjacent to it - meaning to say that once Moses heard that the decree upon him was in force, and he gave up asking for himself, he requested to appoint someone else in his place?...
Or HaChaim
יפקד ה׳ אלוקי הרוחות, "Let the Lord, the G'd of the spirits appoint, etc." 1) Why did Moses choose this most unusual way of describing G'd's virtues? 2) Why was Moses so long-winded in describing the functions of a leader of the people such as אשר..יצא…ואשר יבא? 3) Why did he add "let not the Lord's congregation be as a flock without shepherd?" Whatever possessed Moses to imagine that but for him the Jewish people would remain leaderless and that G'd would abandon them?
Rabbeinu Bahya
צוטריטלעך נאָר פֿאַר פּרעמיום־מיטגלידערSiftei Chakhamim
צוטריטלעך נאָר פֿאַר פּרעמיום־מיטגלידערRav Hirsch
צוטריטלעך נאָר פֿאַר פּרעמיום־מיטגלידערRashi
אלהי הרוחת GOD OF THE SPIRITS [OF ALL FLESH] — Why is this expression used? (i.e., why does it not state simply אלהי כל בשר?) He said to Him: “Lord of the Universe! the personality of each person is revealed to you, and no two are alike. Appoint over them a leader who will tolerate each person according to his individual character (Midrash Tanchuma, Pinchas 10; cf. Yalkut Shimoni on Torah 776).