Bereshit / Genesis 23:1
וַיִּהְיוּ חַיֵּי שָׂרָה מֵאָה שָׁנָה וְעֶשְׂרִים שָׁנָה וְשֶׁבַע שָׁנִים שְׁנֵי חַיֵּי שָׂרָה׃
And the life of Sarah was one hundred years, and twenty years, and seven years: the years of the life of Sarah.
Pshat פְּשָׁט
A hundred, twenty and seven
Rashi reads the word "years" after each number as three separate entries: each number is expounded on its own. At a hundred Sarah was like twenty as regards sin: as a twenty-year-old had not sinned, because Heaven does not yet punish at that age, so the hundred-year-old was without sin. And at twenty she was like seven in beauty. And the last words "the years of the life of Sarah" mean: all of them were equally good. Ibn Ezra notes only the language: the word "life" (חַיִּים) in Hebrew is always plural, and numbers are usually named from the larger to the smaller.
How Rashi and Ibn Ezra explain it
Remez רֶמֶז
The sun set, the sun rose
The Ba'al HaTurim ties our verse to the one before: "Betuel begot Rivka" (Rebecca), and at once "the life of Sarah", for Sarah's sun had not yet set when Rivka's sun rose. The first letters of the words "Sarah a hundred years" (שָׂרָה מֵאָה שָׁנָה) spell "sun" (שֶׁמֶשׁ), as in the verse "and the sun rises, and the sun sets". And the number of the word "and was" (וַיִּהְיוּ), thirty-seven, is Sarah's years from the birth of Yitzchak (Isaac). Ramban does not accept Rashi's reading: of Yishmael (Ishmael) the years are written the same way, and he was wicked at first and repented only at the end, so his years were not equally good. The repeated "years" is simply the way of the language, and the midrash expounds only the extra words "the years of the life of Sarah".
How Kitzur Ba'al HaTurim and Ramban explain it
Drash דְּרָשׁ
Before one sun has set
The midrash opens with the verse "the Eternal knows the days of the unblemished": as they are unblemished, so their years are unblemished. Rabbi Yochanan says of Sarah: "like that unblemished heifer". Rabbi Abba bar Kahana reads "and the sun rises, and the sun sets" so: before the Holy One, blessed is He, makes the sun of one righteous person set, He makes the sun of another rise. On the day Rabbi Akiva died Rabbeinu was born, before Eli's sun set Shmuel's (Samuel's) sun rose, and before Sarah's sun set, Rivka's (Rebecca's) sun rose. And Rabbi Akiva, to wake his dozing listeners, asked: why did Esther rule a hundred and twenty-seven provinces? Because she is a descendant of Sarah, who lived a hundred and twenty-seven years.
How Bereshit Rabbah explain it
Sod סוֹד
The years she herself brought to life
The Kedushat Levi starts from the words of the sages: a woman without children is called dead, and with children alive. By the stars Sarah was not to give birth, and only by prayer and good deeds did she change her lot, for the Holy One, blessed is He, longs for the prayer of the righteous. So "the years of the life of Sarah" is to be read thus: Sarah herself gave life to her years. The Sefat Emet takes Rashi's words "all equally good": an ordinary person grows wiser with age and leaves his bad deeds, and then only his last years can be called his life. With Sarah all the days were good and without damage. She too rose in old age, but not by discarding the past, rather by climbing from level to level, as is intended for every day of a person.
How Kedushat Levi and Sefat Emet explain it