At the end of two years — He set an end to the darkness there. · לב אהרן - בראשית
לב אהרן - בראשיתמקץ שנתים ימים – קץ שם לחשך
At the end of two years — He set an end to the darkness there.
איתא במדרש (בראשית רבה פרשה פט סימן א) בזה הלשון, ויהי מקץ שנתים ימים – "קץ שם לחשך" (איוב כח), זמן נתן לעולם כמה שנים יעשה באפילה. ומאי טעם קץ שם לחושך, שכל זמן שיצר הרע בעולם, אופל וצלמות בעולם, דכתיב (שם), "אבן אופל וצלמות", נעקר יצר הרע מן העולם, אין אופל וצלמות בעולם. דבר אחר, 'קץ שם לחשך', זמן נתן ליוסף כמה שנים יעשה באפילה בבית האסורים, כיון שהגיע הקץ חלם פרעה חלום, ע"כ.
It is stated in the Midrash (Bereishis Rabbah, parashah 89, siman 1) in these words: “And it was at the end of two years of days” — “He set a limit for darkness” (Iyov 28): He set a time for the world, how many years it would function in darkness. And what is the reason for “He set a limit for darkness”? Because as long as the yetzer hara is in the world, darkness and gloom are in the world, as it is written there, “stone of darkness and shadow of death.” When the yetzer hara is uprooted from the world, there will be no darkness or gloom in the world. Another matter: “‘He set a limit for darkness’ — He set a time for Yosef, how many years he would function in darkness in the prison house. Once the time arrived, Pharaoh dreamed a dream.” Thus far.
והנה, כפי פשוטם של דברים, כוונת המדרש בכנותו את השנים שישב יוסף בבית האסורים בביטוי 'חושך', הינה משום שהישיבה בבית האסורים, ככל הייסורים הבאים על האדם, מביאה בעקבותיה 'חושך', כלומר, דכדוך, דכאון ומרה שחורה. ועל חשכת הייסורים הזו שפסקה עתה מיוסף עת יצא מן הבור, קרא המדרש את הפסוק 'קץ שם לחושך'.
And behold, according to the straightforward meaning of the words, the intent of the Midrash in calling the years that Yosef sat in the prison by the expression *“darkness”* is because being in prison, like all the suffering that comes upon a person, brings in its wake *darkness* — meaning gloom, depression, and melancholy. And upon this darkness of suffering, which now ceased from Yosef when he emerged from the pit, the Midrash applies the pasuk: *“He set an end to darkness.”*