Комментарий о цитате к Берешит 40:22

וְאֵ֛ת שַׂ֥ר הָאֹפִ֖ים תָּלָ֑ה כַּאֲשֶׁ֥ר פָּתַ֛ר לָהֶ֖ם יוֹסֵֽף׃

Но он повесил главного пекаря, как Иосиф объяснил им.

Rashbam

The word is derived from the root תלה, “to hang,” We find it used in this sense in Genesis 40,22 in connection with Pharaoh hanging the chief of the bakers, as well as in Judges 5,12 where the word שביך בן אבינועם is derived from the root שבה, Similarly, the word עניך in Genesis 16,11 כי שמע ה' אל עניך, “for the Lord has paid heed to your suffering,” is derived from the root ענה.

Sforno

כי טוב פתר, he was encouraged to think that Joseph would also come up with positive explanation of his own dream. Our sages use the words “as Joseph had interpreted to them,” (verse 22) to state that most dreams turn out to be in accordance with how the interpreter saw them.