The New John Gill Exposition of the Entire BibleNumbers 27:22
And Moses did as the Lord commanded him…
and obedient to him in all things, though ever so contrary to his own
private interest and to that of his family:
and he took Joshua and set him before Eleazar the priest, and before
all the congregation;
as his successor, whom God had named and
appointed as such.