"And it came to pass, when Moses raised his hand, that Israel prevailed" (Exodus 17:11). Rabbi Eliezer says: Do the hands of Moses make Israel prevail, or do his hands break Amalek? Rather, at the time when Israel does the will of the Omnipresent and believes in what the Omnipresent commanded Moses, the Omnipresent performs for them miracles and mighty acts. Similarly you say: "And they shall take of the blood and put it on the two doorposts" (Exodus 12:7). What does the blood benefit the angel, and what does it benefit the doorpost? Rather, whenever Israel does the will of the Omnipresent and believes in what Moses commanded them to do, the Omnipresent has mercy on them. Similarly, "And the LORD said to Moses, Make for yourself a fiery serpent" (Numbers 21:8) and so forth. Does the serpent kill and give life? Rather, whenever Israel does the will of the Omnipresent and believes in what He commanded them, they are healed. Another explanation: "And it came to pass, when Moses raised his hand" Rabbi Akiva says: When Moses raised his hand, he hinted that Israel was destined to exalt the words of Torah, and they prevail; and when he lowered his hand, it was as if to say that Israel was destined to debase the words of Torah, and they do not prevail.
When Moses Raised His Hands and Israel Prevailed
Mekhilta DeRabbi Shimon Ben Yochai 17:11
והיה כאשר ירים משה ידו וגבר ישראל ר' אליעזר אומר וכי ידיו של משה מגברות ישראל או ידיו משברות עמלק אלא בזמן שישראל עושין רצונו של מקום ומאמינים במה שפקד המקום למשה המקום עושה להם נסים וגבורות: כיוצא בו אתה אומר (י"ב ז') ולקחו מן הדם ונתנו על שתי המזוזות וגו' וכי מה הדם מהנה למלאך ומה מהנה למזוזה אלא כל זמן שישראל עושין רצונו של מקום ומאמינים במה שפיקדן משה לעשות המקום חס עליהן: כיוצא בו (במדבר כ"א ה') ויאמר ה' אל משה עשה לך שרף וגו' וכי נחש ממית ומחיה אלא כל זמן שישראל עושין רצונו של מקום ומאמינין במה שפיקדן הן מתרפאין: ד"א והיה כאשר ירים משה ידו ר' עקיבה אומר כשהיה משה מגביה ידו רמז שעתידין ישראל להגביה דברי תורה הן נוצחין וכשהוא משפיל ידו כויכול שעתידין ישראל להשפיל דברי תורה ואינן נוצחין: