And so too you find in the case of Noah, that when he blessed his sons, as it is said, "Blessed be the Lord, the God of Shem" (Genesis 9:26); but when he cursed Canaan, [he did not mention the name of the Holy One, blessed be He, over him], as it is said, "And he said: Cursed be Canaan" (ibid. 9:25). And so too you find in the case of Elisha the prophet, when the king of Aram came to make war against Israel. He took counsel with his servants and made for them pitsim (that is, trenches). He said: When Israel comes to make war against us, they will fall into the trenches, as it is said, "Now the king of Aram was warring against Israel, and he took counsel with his servants, saying: In such and such a place shall be my encampment. And the man of God sent to the king of Israel, [saying]: Beware of passing by this place, for there the Arameans are coming down" (II Kings 6:8-9). "Surely the Lord God does nothing unless He has revealed His counsel to His servants the prophets" (Amos 3:7). Since Israel passed by a first and a second time and did not fall, the king of Aram perceived it and said to his servants: Will you not tell me which of us is for the king of Israel? His servants said to him: It is Elisha the prophet who is in Israel who tells the king of Israel the things that you speak in your bedchamber. And he said: Go and see [where he is] (II Kings 6:11-13). And he sent there horses and chariots (ibid. 6:14). Immediately he cried out and said: Alas, my master, how shall we act? And he said: Fear not, for those who are with us are more than those who are with them (ibid. 6:15-16). Immediately Elisha prayed to the name of the Holy One, blessed be He, as it is said, "And Elisha prayed and said: Lord, open his eyes, I pray, that he may see. And the Lord opened the eyes of the lad, and he saw, and behold, the mountain was full of horses and chariots of fire round about Elisha" (ibid. 6:17). Immediately Elisha arose and cursed the Arameans, "And he said: Smite, I pray, this nation with blindness; and He smote them with blindness according to the word of Elisha" (ibid. 6:18) — and he did not mention the Name. But when he turned back and prayed over them that their eyes be opened, he said, "Lord, open the eyes of these men that they may see" (ibid. 6:20). Behold, the name of the Holy One, blessed be He, is not mentioned over evil. And so too you find when the angels of destruction came to destroy Jerusalem, as it is said, "And behold, six men were coming" (Ezekiel 9:2). The Holy One, blessed be He, said to Gabriel: Fill your hands with coals of fire from between the cherubim and scatter them over the city, as it is written, "And He said to the man clothed in linen" (Ezekiel 10:2). Gabriel came and stood beside the wheel. The cherub said to him: What do you wish? He said to him: Thus and so has the Holy One, blessed be He, commanded me. He said to him: Take. He said to him: You place it in my hand. "And the cherub stretched forth his hand from between the cherubim" (ibid. 10:7). Rabbi Yochanan said in the name of Rabbi Shimon ben Yochai: Had the coals not cooled from the hand of the cherub to the hand of Gabriel, there would not have remained of the enemies of Israel a survivor or a fugitive. And the Holy One, blessed be He, did not wish to do the evil by Himself, but rather by the hand of an angel; but in the time to come the good He will do by Himself, as it is said, "And I will sprinkle pure water upon you" (ibid. 36:25). Behold, "For You are not a God who delights in wickedness; evil shall not dwell with You" (Psalms 5:5).
Why God's Name Is Never Joined to Evil - Noah, Elisha, Gabriel
Midrash Tanchuma Buber, Tazria 12:3
וכן אתה מוצא בנח כשבירך את בניו, שנאמר ברוך ה' אלהי שם וגו' (בראשית ט כו), אבל כשקילל את כנען [לא הזכיר שמו של הקב"ה עליו], שנאמר ויאמר ארור כנען וגו' (שם שם כה), וכן אתה מוצא באלישע הנביא, כשבא מלך ארם להלחם בישראל, נתייעץ בעבדיו, ועשה להם פיטסים, אמר כשיבואו ישראל להלחם בנו יפלו בתוך הפיטסים (פי' חפירות), שנאמר ומלך ארם היה נלחם בישראל ויועץ אל עבדיו לאמר אל מקום פלוני אלמוני תחנותי, וישלח איש האלהים אל מלםך ישראל [לאמר] השמר מעבור (אל) המקום הזה כי שם ארם נחתים (מ"ב ו ח ט).ואין הקב"ה עושה דבר כי אם גלה סודו אל עבדיו הנביאים (עמוס ג ז), כיון שעברו ישראל פעם ראשונה ושניה ולא נפלו, הרגיש מלך ארם ואמר לעבדיו, הלא תגידו לי מי משלנו אל מלך ישראל, אמרו לו עבדיו כי אלישע הנביא אשר בישראל יגיד למלך ישראל את הדברים אשר תדבר בחדר משכבך ויאמר לכו וראו וגו' (מ"ב שם יא יב יג), וישלח שמה סוסים ורכב (שם שם יד), מיד ויצעק ויאמר אהה אדני איכה נעשה, ויאמר אל תירא כי רבים אשר אתנו מאשר אותם (שם שם טו טז), מיד נתפלל אלישע לשמו של הקב"ה, שנאמר ויתפלל אלישע ויאמר ה' פקח נא את עיניו ויראה, ויפקח ה' את עיני הנער וירא והנה ההר מלא סוסים ורכב אש (סביב) [סביבות] אלישע (שם שם יז), מיד עמד אלישע וקלל ארמים, ויאמר (הכה) [הך נא] את הגוי הזה בסנורים ויכם בסנורים כדבר אלישע (שם שם יח), ולא הזכיר את השם, וכשחזר והתפלל עליהם שיפקחו עיניהם אמר ה' פקח (נא) [את עיני אל ויראו] (שם שם כ), הוי שאין שמו של הקב"ה נזכר על הרעה. וכן אתה מוצא כשבאו מלאכי חבלה להחריב את ירושלים, שנאמר והנה ששה אנשים באים וגו' (יחזקאל ט ב), אמר לו הקב"ה לגבריאל מלא חפניך גחלי אש מבינות לכרובים וזרוק על העיר, כדכתיב ויאמר אל האיש לבוש הבדים וגו' (שם י ב), בא גבריאל ועמד לו אצל האופן, א"ל הכרוב מה אתה חפץ, א"ל כך וכך צוני הקב"ה, א"ל טול, א"ל תן אתה בידי, וישלח הכרוב את ידו מבינות לכרובים (שם שם ז), אמר ר' יוחנן בשם ר' שמעון בן יוחי אילמלי לא נצטננו גחלים מידו של כרוב לידו של גבריאל לא נשתייר משונאיהם של ישראל שריד ופליט, ולא רצה הקב"ה לעשות את הרעה על ידי עצמו אלא על ידי מלאך, אבל לעתיד לבא הטובה עושה על ידי עצמו, שנאמר וזרקתי עליכם מים טהורים וגו' (שם לו כה), הוי כי לא אל חפץ רשע אתה לא יגורך רע.