In , Wisdom (which the Rabbis equated with the Torah) says, "By me kings reign, and princes decree justice." A Midrash taught that thus reports what actually happened to Joshua, for as reports, it was not the sons of Moses who succeeded their father, but Joshua. And the Midrash taught that , "And he who waits on his master shall be honored," also alludes to Joshua, for Joshua ministered to Moses day and night, as reported by , which says, "Joshua departed not out of the Tent," and , which says, "Joshua . . . said: ‘My lord Moses, shut them in.’" Consequently God honored Joshua by saying of Joshua in "He shall stand before Eleazar the priest, who shall inquire for him by the judgment of the Urim." And because Joshua served his master Moses, Joshua attained the privilege of receiving the Holy Spirit, as reports, "Now it came to pass after the death of Moses . . . that the Lord spoke to Joshua, the minister of Moses." The Midrash taught that there was no need for to state, "the minister of Moses," so the purpose of the statement "the minister of Moses" was to explain that Joshua was awarded the privilege of prophecy because he was the minister of Moses.