Shemot (Exodus) Chapter 17

8Amalek came and fought with Israel in Rephidim.   חוַיָּבֹ֖א עֲמָלֵ֑ק וַיִּלָּ֥חֶם עִם־יִשְׂרָאֵ֖ל בִּרְפִידִֽם:
Amalek came, etc.. He [God] juxtaposed this section to this verse, ["Is the Lord in our midst or not? "] implying: “I am always among you, and [I am] always prepared for all your necessities, but you say, Is the Lord in our midst or not?’ By your life, the dog will come and bite you, and you will cry out to Me, and [then] you will know where I am ” This can be compared to a man who mounted his son on his shoulder and set out on the road. Whenever his son saw something, he would say, “Father, take that thing and give it to me,” and he [the father] would give it to him. They met a man, and the son said to him, “Have you seen my father?” So his father said to him, “You don’t know where I am?” He threw him [his son] down off him, and a dog came and bit him [the son]. — [from Tanchuma, Yithro 3; Exod. Rabbah 26:2]   וַיָּבֹא עֲמָלֵק וגו'.  סָמַךְ פָּרָשָׁה זוֹ לְמִקְרָא זֶה, לוֹמַר, תָּמִיד אֲנִי בֵינֵיכֶם וּמְזֻמָּן לְכָל צָרְכֵּיכֶם וְאַתֶּם אוֹמְרִים הֲיֵשׁ ה' בְּקִרְבֵּנוּ אִם אָיִן, חַיֵּיכֶם שֶׁהַכֶּלֶב בָּא וְנוֹשֵׁךְ אֶתְכֶם וְאַתֶּם צוֹעֲקִים לִי וְתֵדְעוּ הֵיכָן אֲנִי? מָשָׁל לְאָדָם שֶׁהִרְכִּיב בְּנוֹ עַל כְּתֵפוֹ וְיָצָא לַדֶּרֶךְ, הָיָה אוֹתוֹ הַבֵּן רוֹאֶה חֵפֶץ וְאוֹמֵר, אַבָּא טֹל חֵפֶץ זֶה וְתֵן לִי וְהוּא נוֹתֵן לוֹ, וְכֵן שְׁנִיָּה, וְכֵן שְׁלִישִׁית, פָּגְעוּ בְאָדָם אֶחָד אָמַר לוֹ אוֹתוֹ הַבֵּן, רָאִיתָ אֶת אַבָּא? אָמַר לוֹ אָבִיו, אֵינְךָ יוֹדֵעַ הֵיכָן אֲנִי? הִשְׁלִיכוֹ מֵעָלָיו וּבָא הַכֶּלֶב וּנְשָׁכוֹ (תנחומא יתרו):
9So Moses said to Joshua, Pick men for us, and go out and fight against Amalek. Tomorrow I will stand on top of the hill with the staff of God in my hand   טוַיֹּ֨אמֶר משֶׁ֤ה אֶל־יְהוֹשֻׁ֨עַ֙ בְּחַר־לָ֣נוּ אֲנָשִׁ֔ים וְצֵ֖א הִלָּחֵ֣ם בַּֽעֲמָלֵ֑ק מָחָ֗ר אָֽנֹכִ֤י נִצָּב֙ עַל־רֹ֣אשׁ הַגִּבְעָ֔ה וּמַטֵּ֥ה הָֽאֱלֹהִ֖ים בְּיָדִֽי:
Pick…for us. For me and for you. From here the Sages stated: “Your disciple’s honor shall be as dear to you as your own honor” (Avoth 4:12). How do we know that you should honor your peer as you revere your mentor? For it is said: “Aaron said to Moses, I beseech you, my lord’ ” (Num. 12:11). Now was Aaron not older than Moses? Yet he [Aaron] considers his peer as his mentor. And how do we know that one must revere his mentor as he reveres Heaven? For it is said: “My lord, Moses, destroy them” (Num. 11:28). Destroy them [Eldad and Medad] from the world. They deserve to be annihilated because they are rebelling against you, [which is] tantamount to having rebelled against the Holy One, blessed be He. — [from Mechilta; Tanchuma, Beshallach 26]   בְּחַר־לָנוּ.  לִי וּלְךָ – הִשְׁוָהוּ לוֹ; מִכָּאן אָמְרוּ חֲכָמִים יְהִי כְבוֹד תַּלְמִידְךָ חָבִיב עָלֶיךָ כְּשֶׁלָּךְ; וּכְבוֹד חֲבֵרְךָ כְּמוֹרָא רַבָּךְ מִנַּיִן? שֶׁנֶּאֱמַר "וַיֹּאמֶר אַהֲרֹן אֶל מֹשֶׁה בִּי אֲדֹנִי", וַהֲלֹא אַהֲרֹן גָּדוֹל מֵאָחִיו הָיָה וְעוֹשֶׂה אֶת חֲבֵרוֹ כְּרַבּוֹ. וּמוֹרָא רַבָּךְ כְּמוֹרָא שָׁמַיִם מִנַּיִן? שֶׁנֶּאֱמַר "אֲדֹנִי מֹשֶׁה כְּלָאֵם" – כַּלֵּם מִן הָעוֹלָם, חַיָּבִין הֵם כְּלָיָה, הַמּוֹרְדִים בְּךָ כְּאִלּוּ מָרְדוּ בְּהַקָּדוֹשׁ בָּרוּךְ הוּא:
and go out and fight. Go out of the cloud and fight with them. — [from Mechilta and Exod. Rabbah, end of Beshallach]   וְצֵא הִלָּחֵם.  צֵא מִן הֶעָנָן וְהִלָּחֵם בּוֹ:
Tomorrow. At the time of the battle, I will stand.   מָחָר.  בְּעֵת הַמִּלְחָמָה, אָנֹכִי נִצָּב:
Pick men for us. Heb. אִנָשִׁים, mighty men, and God-fearing [men] so that their merit will help us (Mechilta d’Rabbi Shimon ben Yochai, Pirkei d’Rabbi Eliezer ch. 44, Yalkut Shimoni, Jonathan). Another explanation: who know how to counteract witchcraft, because the Amalekites were sorcerers.   בְּחַר־לָנוּ אֲנָשִׁים.  גִּבּוֹרִים וְיִרְאֵי חֵטְא שֶׁתְּהֵא זְכוּתָן מְסַיַּעְתָּן. דָּבָר אַחֵר – בְּחַר לָנוּ אֲנָשִׁים שֶׁיּוֹדְעִין לְבַטֵּל כְּשָׁפִים, לְפִי שֶׁבְּנֵי עֲמָלֵק מְכַשְּׁפִין הָיוּ:
10Joshua did as Moses had told him, to fight against Amalek; and Moses, Aaron, and Hur ascended to the top of the hill.   יוַיַּ֣עַשׂ יְהוֹשֻׁ֗עַ כַּֽאֲשֶׁ֤ר אָֽמַר־לוֹ֙ משֶׁ֔ה לְהִלָּחֵ֖ם בַּֽעֲמָלֵ֑ק וּמשֶׁה֙ אַֽהֲרֹ֣ן וְח֔וּר עָל֖וּ רֹ֥אשׁ הַגִּבְעָֽה:
and Moses, Aaron, and Hur. From here [we deduce] that on a fast day, three people are required to go before the ark [to lead the prayers], for they were fasting. — [from Mechilta]   וּמשֶׁה אַֽהֲרֹן וְחוּר.  מִכָּאן לְתַעֲנִית שֶׁצְּרִיכִים שְׁלֹשָׁה לַעֲבֹר לִפְנֵי הַתֵּבָה, שֶׁבְּתַעֲנִית הָיוּ שְׁרוּיִים (מכילתא):
Hur. He was the son of Miriam, and Caleb, her husband. — [from Sotah 11b]   חוּר.  בְּנָהּ שֶׁל מִרְיָם הָיָה וְכָלֵב בַּעְלָהּ (סוטה י"א):