“Amalek came [and waged war with Israel in Refidim]” (Exodus 17:8), that is what is written: “I was not serene, was not silent, and I did not rest, but turmoil came” (Job 3:26). “I was not serene” due to Babylon; “was not silent” due to Media; “I did not rest” due to Greece; “but turmoil came” through Edom. Alternatively, “I was not serene” due to the first edict that Pharaoh decreed against me, as it is stated: “They embittered their lives” (Exodus 1:14), and the Holy One blessed be He provided a redeemer for them, namely Miriam, named for the bitterness [merur].
“Was not silent” due to the second edict: “If it is a son put him to death” (Exodus 1:16), and the Holy One blessed be He provided a redeemer, namely Aaron, named for pregnancy [herayon]. “I did not rest” due to the third edict that he decreed, saying: “Every son that is born cast him into the Nile” (Exodus 1:22), and the Holy One blessed be He provided a redeemer, named for the water. This is Moses, as it is stated: “As I drew him [meshitihu] from the water” (Exodus 2:10). “But turmoil came,” this is Amalek.