23:1

וַיִּהְיוּ חַיֵּי שָׂרָה מֵאָה שָׁנָה וְעֶשְׂרִים שָׁנָה וְשֶׁבַע שָׁנִים שְׁנֵי חַיֵּי שָׂרָה׃

And the life of Sarah was one hundred years, and twenty years, and seven years: the years of the life of Sarah.

Bereshit 23:1

וַיִּהְיוּ חַיֵּי שָׂרָה

Bereshit / Genesis 23:1 · Sod

Bereshit 23:1

וַיִּהְיוּ חַיֵּי שָׂרָה מֵאָה שָׁנָה וְעֶשְׂרִים שָׁנָה וְשֶׁבַע שָׁנִים שְׁנֵי חַיֵּי שָׂרָה׃

And the life of Sarah was one hundred years, and twenty years, and seven years: the years of the life of Sarah.

Sod סוֹד

The years she herself brought to life

One can live many years and little life. The Kedushat Levi reads the words "the years of the life of Sarah" as a summary: she herself made her years alive. And the Sefat Emet explains how the life of a righteous woman differs from the life of one who mends his ways only in old age.

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

Kedushat Levi And the life of Sarah was a hundred. The years of the life of Sarah

It seems to me, with the help of Heaven, that this is explained by the words of our sages, which Rashi brings in the portion Vayetze on the verse "and if not, I am dead": every woman who has no children is called dead, and only when she has children is she alive. Known too are the words of our sages that the Eternal said to our father Avraham: go out of your star-gazing, Sarai will not bear, Sarah will bear. So she was created under a sign by which she was not to bear, and only by good deeds did she merit that her lot be changed, as our sages said: why were our matriarchs barren? Because the Holy One, blessed is He, longs for the prayer of the righteous. It comes out that by prayer and good deeds Sarah merited a son, and by this she is called alive and not dead. This is what the verse says, "the years of the life of Sarah": Sarah gave life to her years, by good deeds and prayer she brought it about that she had life, that is, by good deeds she merited a son, and so she is called not dead but alive. This is "the years of the life of Sarah": Sarah gave life to her years. Understand this.

Sefat Emet In Rashi: the years of the life of Sarah, all equally good

One may say so. An ordinary person, growing old and gaining understanding, sets his ways right, and it comes out that the older he grows, the more he leaves the bad traits and bad deeds he used to do. If so, only his last moment is called his life, when he reaches the proper wholeness, if he merits it. But with the righteous Sarah all the days were in goodness and without damage. Surely she rose higher in old age. But not by discarding the earlier deeds of the days of youth, rather she rose as she was created: for all the days of a person are measured out so that each day he mends something of its own and rises from level to level. She had no flaw and no damage after which one must return to living rightly. This is what is said: all equally good. Understand.

Takeaway

"And if not, I am dead": the words of Rachel to Yaakov (Jacob) when she had no children (Bereshit / Genesis 30:1). Rashi there brings the words of the sages: the childless is as dead (Nedarim 64b).
"Go out of your star-gazing": by the Talmud Avraham saw by the stars that he would have no son, and the Holy One, blessed is He, took him outside: Israel has no constellation, Sarai will not bear, Sarah will bear (Shabbat 156a). The change of name from Sarai to Sarah changes the fate too.
"The Holy One, blessed is He, longs for the prayer of the righteous": so the midrash explains why the matriarchs were barren (Shir HaShirim Rabbah 2:14). The Talmud gives the same answer in tractate Yevamot (Yevamot 64a).
The Kedushat Levi reads "the years of the life of Sarah" (שְׁנֵי חַיֵּי שָׂרָה) not as "the years she lived" but as "the years to which she gave life": Sarah here is not the object of the count but the one who acts.
"All equally good": Rashi's words on our verse. The Sefat Emet asks what is new in them and answers: it is the difference between one who mends by discarding the past and one who grows without discarding anything.