Bereshit / Genesis 49:22 · Drash
בֵּן פֹּרָת יוֹסֵף בֵּן פֹּרָת עֲלֵי־עָיִן בָּנוֹת צָעֲדָה עֲלֵי־שׁוּר׃
A fruitful son is Yosef, a fruitful son by a spring. Daughters stepped along the wall to see him.
Drash דְּרָשׁ
Eyes that did not look
The midrash asks: why are Yosef and his descendants shielded from the evil eye? The answer hides in two stories where Yosef thought about someone else's gaze.
Rashi: when Esav came toward Yaakov, the boy Yosef stepped forward and covered his mother Rachel, so that Esav would not set his eye on her. For this he grew above the eye. The "daughters" are the daughters of Tzelofchad of the tribe of Menashe. Lekach Tov: the daughters of kings climbed the wall to see Yosef, and he did not raise his eyes to any of them. So when Yehoshua told Yosef's descendants to hide in the forest from the evil eye, they answered: it has no power over us.
How Rashi and Midrash Lekach Tov explain it
Rashi Over the wall (עֲלֵי שׁוּר)
To look. Onkelos translates "daughters stepped over the wall": "two tribes will come out of his sons" and so on. And "daughters" is written for the daughters of Menashe, the daughters of Tzelofchad, who took a share on both sides of the Jordan. "A son who will multiply is Yosef": "porat" means being fruitful and multiplying. And there are aggadic midrashim that fit the words: when Esav came toward Yaakov, with all the wives the mothers went ahead of their children to bow down. But of Rachel it is written: "Yosef and Rachel came near and bowed down" (33:7). Yosef said: "This wicked man has a haughty eye. He may set his eyes on my mother." He went out in front of her and stretched himself to his full height to cover her. That is why his father blessed him "a fruitful son (בֵּן פֹּרָת)": you made yourself grow, Yosef, above Esav's eye, therefore you merited greatness.
Midrash Lekach Tov Another explanation of "by a spring (עֲלֵי עָיִן)"
That his tribe will be fruitful and multiply like a gushing spring. As it says: "And ten portions fell to Menashe" (Yehoshua / Joshua 17:5). And it is written: "And the sons of Yosef spoke to Yehoshua, saying: why have you given me one lot and one portion, when I am a great people, since the Eternal has blessed me so" (there, 17:14). Yehoshua said to them: "If you are a great people, go up to the forest." He told them: "Hide yourselves in the forests, so that the evil eye will have no power over you." They answered him: "The evil eye has no power over Yosef's descendants, as it says: 'a fruitful son is Yosef, a fruitful son by a spring.'"
Daughters stepped over the wall.
The daughters of kings would step along the wall to see Yosef when they set him in the second chariot. And he did not turn his eyes to any of them.
Takeaway
Bereshit Rabbah (98:18) goes on: since you did not raise your eyes to the daughters of kings, the Holy One will give your daughters a "step" (צְעִידָה) in the Torah, that is, a whole section. These are the daughters of Tzelofchad, who asked for a portion and received the law of inheritance (Bamidbar / Numbers 27:1–11).
Yehoshua, whom Yosef's descendants argue with, is himself from the tribe of Ephraim (Bamidbar / Numbers 13:8). Lekach Tov reads his answer "go up to the forest" as care for a brother.
The scene with Esav is in Bereshit / Genesis 33:7: with every wife the mothers go first and then the children, and only with Rachel is Yosef named first.