Moshe’s life was drawing to a close and he wanted to make sure he can turn over the leadership of the Bnei Israel to the proper person who can truly lead this people of diverse outlooks and varied opinions. He turned to Hashem with his special request.
He addressed Him in the following manner: יִפְקֹד יְקֹוָק אֱלֹקֵי הָרוּחֹת “May Hashem, G-d of the spirit of all flesh, appoint a man over the assembly…”. (Num. 27,16) This is a very strange way to speak to Hashem by mentioning He was G-d of “the spirit of all flesh”.
Moshe knew a good leader has to have patience and understanding so that he can take into consideration not only the opinions of people who agree with him but also those who have distinctly conflicting ideas. He has to be ready to listen, absorb and be prepared to decide what is best for all and not only for certain groups and classes. He has to be a leader for all.
This is specifically what Moshe had in mind. Just as Hashem was over “all flesh”, that is, all different types of people with their divergent views and distinct needs, so too should the leader of the people have a similar characteristic. He should be able to deal with all kinds of people.