Bereshit / Genesis 25:17 · Drash
וְאֵלֶּה שְׁנֵי חַיֵּי יִשְׁמָעֵאל מְאַת שָׁנָה וּשְׁלֹשִׁים שָׁנָה וְשֶׁבַע שָׁנִים וַיִּגְוַע וַיָּמָת וַיֵּאָסֶף אֶל־עַמָּיו׃
And these are the years of the life of Yishmael: one hundred years, and thirty years, and seven years. And he expired and died, and was gathered to his people.
Drash דְּרָשׁ
The lineage of a wicked man
You leaf through the family album and find a page about a relative the family prefers not to recall. Why was it kept? The sages asked this question about the lineage of Yishmael (Ishmael).
The sages ask why Scripture gives the lineage and the years of a wicked man. Bereshit Rabbah answers: by them one reckons at what age the forefather was blessed, and Yishmael's years are named also because he came from the depth of the desert to do kindness to his father. And the midrash notes: of Yishmael it first says "shall dwell", and then "fell".
How Bereshit Rabbah explain it
Bereshit Rabbah "And these are the generations of Yishmael, son of Avraham" (Bereshit / Genesis 25:12)
Rabbi Chama bar Ukva and the sages were sitting and puzzling: why did Scripture see fit to trace here the lineage of a wicked man? Rabbi Levi was passing by, and they said: here comes the master of this teaching, let us ask him. Said Rabbi Levi in the name of Rabbi Chama: to let you know at what age your forefather was blessed.
"And these are the years of the life of Yishmael" (Bereshit / Genesis 25:17): why did Scripture see fit to count here the years of a wicked man? Because he came from the depth of the desert to do kindness to his father.
"And they dwelt from Chavilah" (Bereshit / Genesis 25:18): here it says "fell", and there it says "shall dwell" (Bereshit / Genesis 16:12). The point is: while our father Avraham was alive, "shall dwell", and when our father Avraham died, "fell". Until he raised his hand against the Temple, "shall dwell", and when he raised his hand against it, "fell". In this world "shall dwell", but for the future "fell".
Takeaway
"At what age your forefather was blessed": the forefather here is Yaakov (Jacob), so Matnot Kehunah explains (on Bereshit Rabbah 62:4). The Talmud gives the count: Yishmael is fourteen years older than Yitzchak (Isaac), Yitzchak was sixty when Yaakov was born, so Yishmael was then seventy-four. He lived one hundred and thirty-seven years, and in the year of his death Yaakov was sixty-three: at that age his father blessed him (Megillah 17a). Rashi gives the same answer in the Pshat.
"From the depth of the desert to do kindness to his father": when Avraham died, "Yitzchak and Yishmael his sons buried him" (Bereshit / Genesis 25:9). Yishmael lived in the desert of Paran (Bereshit / Genesis 21:21), far from Chevron, and came to the burial. Rashi on that verse notes that Yishmael let Yitzchak go first, and from this they learn that he repented. The midrash rewards one deed: the years of a wicked man are counted because he honoured his father.
"Shall dwell" (יִשְׁכֹּן) and "fell" (נָפָל): the angel promised Hagar of her son "in the face of all his brothers he shall dwell" (Bereshit / Genesis 16:12), and the next verse ends "in the face of all his brothers he fell" (Bereshit / Genesis 25:18). Rashi explains that "fell" here means "dwelt", as in the verse "lay along the valley" (Shoftim / Judges 7:12), and brings the midrash's first answer (Rashi on Bereshit / Genesis 25:18). The midrash sees in the change of verb three turning points: Avraham's death, the hand raised against the Temple, the future.
"Until he raised his hand against the Temple": Pirkei DeRabbi Eliezer also speaks of the sons of Yishmael and the Temple. By it, at the end of days they will do fifteen things in the Land of Israel, and among them they will build a building in the Temple (Pirkei DeRabbi Eliezer 30).
"The master of this teaching" (מָרָהּ דִּשְׁמַעְתָּא): Matnot Kehunah explains these Aramaic words as "the master of the law, that is, an outstanding teacher" (Matnot Kehunah on Bereshit Rabbah 62:4).