“The Song of Songs that is Solomon’s” (Song of Songs 1:1). Prologue of the Sages. “The Song of Songs,” that is what [the verse] written by Solomon states: “Have you seen a man diligent in his labor? He will stand before kings, he will not stand before dark ones” (Proverbs 22:29).
“Have you seen a man diligent in his labor” – This is Joseph, in whose regard it is written: “He came into the house to perform his labor [and none of the men of the house were there, in the house]” (Genesis 39:11). Rabbi Yehuda and Rabbi Neḥemya, Rabbi Yehuda says: It was a day of disgrace and manure,1The midrash is referring here to Egyptian ritual worship, and uses these words to describe it in order to demean such idolatry. and a day of theater.
Rabbi Neḥemya says it was a day of theater in honor of the Nile. Everyone went to see, and he entered to perform his labor to calculate the accounts of his master. Rabbi Pinḥas says in the name of Rabbi Shmuel bar Abba: Anyone who serves his master properly is set free. From where do we derive this?
From Joseph. Because he served his master properly, he was set free. Therefore, “he will stand before kings,” this is Pharaoh, as it is stated: “Pharaoh sent and summoned Joseph, and they rushed him from the dungeon” (Genesis 41:14). “He will not stand before dark ones,” this is Potiphar, as the Holy One blessed be He blinded his eyes and castrated him.