בראשית רבתי Parashat Vayigash · ו
Bereshit Rabbati 8
(Genesis 46:2) "In visions of the night." In two visions, the Holy One, blessed be He, showed him on that night. He showed him the enslavement of his sons in Egypt, and "I will also surely bring you up" (Genesis 46:4) — this refers to redemption. Why at night? Corresponding to the exile, which is complete darkness, as it is stated, "Guard what is left until night" (Isaiah 21:11). And corresponding to the redemption from Egypt, which is destined to begin at night. The plague of the firstborn occurred at night, as it is stated, "And it came to pass at midnight" (Exodus 12:29). Pharaoh sent for Moses and Aaron at night, as it is stated, "And Pharaoh called to Moses and Aaron at night" (Exodus 12:31).