Commentary for Megillah 26:8
בימים ההם ומרדכי יושב בשער המלך קצף בגתן ותרש אמר ר' חייא בר אבא אמר רבי יוחנן הקציף הקב"ה אדון על עבדיו לעשות רצון צדיק ומנו יוסף שנאמר (בראשית מא, יב) ושם אתנו נער עברי וגו'
"In those days, while Mordecai sat in the king's gate, Bigtan and Teresh were enraged" (Esther 2:21). R. Hiyya b. Abba said in the name of R. Yohanan: The Holy One, blessed be He, [once] caused a master to be angry with his servants in order to fulfil the desire of a righteous man, namely Joseph, as it says, "And there was with us there a young man, a Hebrew, etc." (Genesis 40:20);
Rashi on Megillah
A master with his servants: "And Pharaoh was enraged at his two officials" (Genesis 40:2).
Ask RabbiBookmarkShareCopy