"And Joshua did as Moses had said to him" (Exodus 17:10) he did what he was commanded and did not transgress the decree of Moses. "And Moses, Aaron, and Hur" this Hur was the son of Miriam. "Went up to the top of the hill." Regarding the matter we discussed from here we learn that the prayer-leader of the congregation should have one at his right and one at his left.
Joshua Obeys and Moses Aaron and Hur Climb the Hill
Mekhilta DeRabbi Shimon Ben Yochai 17:10
ויעש יהושע כאשר אמר לו משה עשה מה שנתפקד ולא עבר על גזרת משה: ומשה ואהרן וחור. זה בנה של מרים: עלו ראש הגבעה. לענין שאמרנו מיכאן לשליח צבור שיהיה אחד מימינו ואחד משמאלו: