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 · Pshat

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.

Pshat פְּשָׁט

A hundred, twenty and seven

You read an obituary and see a strange entry: not "127 years" but "a hundred years, and twenty years, and seven years". The scribe did not slip. Rashi explains why the word "years" stands three times and what it says about Sarah.

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

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

That is why "years" is written with each number, to tell you that each number is expounded on its own. At a hundred she was like twenty as regards sin: as a twenty-year-old had not sinned, for she is not yet liable to punishment, so the hundred-year-old was without sin. And at twenty she was like seven in beauty.

The years of the life of Sarah.
All of them equally good.

Ibn Ezra The life of

A word in the plural, and it does not divide into a singular. By the custom of the language the larger number is put before the smaller, and the reverse occurs, as in "the years of Yaakov".

Takeaway

"Not yet liable to punishment": by the Talmud the Heavenly court does not punish a person before the age of twenty (Shabbat 89b). Rashi takes this threshold to explain how Sarah at a hundred was like a twenty-year-old.
The midrash Rashi retells reads the other way round in the version that reached us: "at twenty like seven as regards sin, at a hundred like twenty in beauty" (Bereshit Rabbah 58:1). Shadal holds that Rashi had a reversed manuscript, which is why he had to add the words about punishment.
"The years of Yaakov": Ibn Ezra means the words of Yaakov (Jacob) before Pharaoh about "the days of the years" of his life, where the count also runs from the larger (Bereshit / Genesis 47:9). So he shows that the order of numbers in our verse is ordinary, not special.
The word "life" (חַיִּים) in Hebrew has a plural form, like "water" (מַיִם) or "sky" (שָׁמַיִם). Ibn Ezra warns: it has no singular, and one need not look for a hint in this form.