(Proverbs 27:17): "Iron sharpens iron" - this is Moses and Pharaoh the wicked, who struck against one another with words. Another interpretation: this is the staff of Aaron and the magicians of Egypt, who struck against one another with sorceries. Rabbi Zeira said: At the time Moses entered before Pharaoh, he [Pharaoh] said to him, 'Who sent you?' He said to him, 'The God of the Hebrews.' He said to him, 'And what did He say?' He said to him, 'Send out My people that they may serve Me.' He said to him, 'Is there then a god in the world whom I do not know? (Exodus 5:2): "I do not know the LORD!"' And he said to him, 'By your life, every deity that I know, each and every one has sent me a letter, but the god you mention has never in his days sent me a letter. Wait for me a little until I bring my register in which all the letters of kings are recorded.' Immediately he sent and brought his archive, and seventy scribes who knew the seventy languages, and they began reading the letters before him. Since they did not find the name of the Holy One, blessed be He, he said before him, 'Did I not say to you so - I do not know the LORD!' Immediately he sent and brought the sages of Egypt. He said to them, 'Have you ever in your days heard the name of the god of these people?' They said to him, 'So we have heard, that he is a son of sages and a son of the kings of old,' as it is said (Isaiah 19:11): "Surely the princes of Zoan are fools, the wise counselors of Pharaoh, a brutish counsel; how can you say to Pharaoh, 'I am a son of sages, a son of the kings of old?'" The Holy One, blessed be He, said to them, 'Fools of the world, you have called yourselves sages and Me the son of sages? By your lives, I will destroy your wisdom from the world,' as it is said (Isaiah 29:14): "And the wisdom of its sages shall perish, and the understanding of its discerning ones shall be hidden." When Moses saw that he [Pharaoh] was reviling himself with words, he returned before the Almighty and said before Him, 'Master of the worlds, did I not say so before You at the outset (Exodus 4:13): "Send, I pray, by the hand of him whom You will send?" For he sits and reviles with words and says to me, "I do not know the LORD!"' He said to him, 'By your life, he has said "I do not know the LORD," but in the end he will know; and he says "and also I will not send Israel," but in the end he will send against his will.' A parable to a king who said to his servant, 'Go out and bring me a fish from the market.' He went and brought him a spoiled fish. He said to him, 'By decree, either eat the fish, or take a hundred lashes, or pay a hundred maneh.' He said to him, 'I will eat the fish.' He had not managed to eat it before he said, 'I will take the hundred lashes.' He was lashed up to sixty or up to seventy, and had not managed to finish the lashing before he said, 'I will pay a hundred maneh.' He is thus found eating the spoiled fish, taking the blows, and paying a hundred maneh. So it was done to the Egyptians: they were stricken, and they sent them out, and they gave their wealth. What caused this for them? Because they hardened themselves before the Omnipresent; therefore the Omnipresent hardened Himself all the more against them through Moses. Therefore it is said, "Iron sharpens iron."
Iron Sharpens Iron as Moses and Pharaoh Clash
Midrash Mishlei 27:2
(משלי כז יז): "ברזל בברזל יחד" - זה משה ופרעה הרשע, שהיו מתנקשים זה עם זה בדברים. ד"א זה מקלו של אהרן וחרטומי מצרים, שהיו מתנקשין זה עם זה בכשפים. אמר רבי זעירא: בשעה שנכנס משה לפני פרעה, אמר לו 'מי שלחך?', אמר לו 'אלהי העברים', אמר לו 'ומה אמר?' אמר לו 'שלח את עמי ויעבדוני', אמר לו 'וכי יש אלוה לעולם שאיני מכירו? (שמות ה ב): "לא ידעתי את ה'!"'. ואמר לו 'חייך, שכל אלוהות שאני מכיר אותם, כל אחד ואחד שלח לי איגרת, אבל אלוה שאתם מזכירין, מימיו לא שלח לי איגרת, אלא המתן לי מעט עד שאביא פנקס שלי שכל אגרות מלכים נמנין בו'. מייד שלח והביא קלוסקוס שלו, ושבעים סופרים שהיו יודעים שבעים לשון, והתחילו קוראים אגרות לפניו, כיוון שלא מצאו שמו של הקב"ה, אמר לפניו 'לא כך אמרתי לך - לא ידעתי את ה'!', מייד שלח והביא חכמי מצרים, אמר להם 'מימיכם שמעתם שמו של אלהיהם אלו?', אמרו לו 'כך שמענו, שבן חכמים הוא ובן מלכי קדם', שנאמר (ישעיהו יט יא): "אך אוילים שרי צוען חכמי יועצי פרעו עצה נבערה, איך תאמרו אל פרעה בן חכמים אני, בן מלכי קדם?!". אמר להם הקב"ה 'שוטים שבעולם, קריתם עצמכם חכמים ולי בן חכמים?! חייכם שאני מאבד חכמתכם מן העולם, שנאמר (ישעיהו כט יד): "ואבדה חכמת חכמיו ובינת נבוניו תסתתר". כיוון שראה משה שהיה מנאץ עצמו בדברים, חזר לפני הגבורה ואמר לפניו 'ריבון העולמים, לא כך אמרתי לפניך מתחילה (שמות ד יג): "שלח נא ביד תשלח"?! שהוא יושב ומנאץ בדברים ואומר לי 'לא ידעתי את ה'! אמר לו 'חייך, הוא אמר 'לא ידעתי את ה', סופו לידע, והוא אומר 'וגם את ישראל לא אשלח', סופו לשלוח על כרחו. משל למלך שאמר לעבדו 'צא והבא לי דג מן השוק', הלך והביא לו דג מבאיש, אמר לו 'בגזירה, או אכול את הדג, או תלקה מאה מלקיות, או תתן מאה מנה', אמר לו 'אני אוכל את הדג', לא הספיק לאכלו עד שאמר 'אני לוקה מאה מלקות', לקה עד ששים או עד שבעים, ולא הספיק ללקות עד שאמר 'אני נותן מאה מנה', נמצא אוכל את הדג מבאיש, ולוקה המכות, ונותן מאה מנה. כך נעשה למצרים: לקו, ושילחו, ונתנו את ממונם. מי גרם להם - על ידי שנתקשו לפני המקום, לפיכך נתקשה המקום יותר עליהם על-ידי משה, לכך נאמר "ברזל בברזל יחד".