15:5

וַיּוֹצֵא אֹתוֹ הַחוּצָה וַיֹּאמֶר הַבֶּט־נָא הַשָּׁמַיְמָה וּסְפֹר הַכּוֹכָבִים אִם־תּוּכַל לִסְפֹּר אֹתָם וַיֹּאמֶר לוֹ כֹּה יִהְיֶה זַרְעֶךָ׃

And He brought him outside and said: "Look, please, toward the heavens and count the stars, if you are able to count them." And He said to him: "So shall your offspring be."

Bereshit 15:5

וַיּוֹצֵא אֹתוֹ הַחוּצָה

Bereshit / Genesis 15:5 · Remez

Bereshit 15:5

וַיּוֹצֵא אֹתוֹ הַחוּצָה וַיֹּאמֶר הַבֶּט־נָא הַשָּׁמַיְמָה וּסְפֹר הַכּוֹכָבִים אִם־תּוּכַל לִסְפֹּר אֹתָם וַיֹּאמֶר לוֹ כֹּה יִהְיֶה זַרְעֶךָ׃

And He brought him outside and said: "Look, please, toward the heavens and count the stars, if you are able to count them." And He said to him: "So shall your offspring be."

Remez רֶמֶז

Thirty righteous

"So shall (יִהְיֶה) your offspring be." The teachers count the letters of the word "shall be" and find a promise for every generation.

Kitzur Ba'al HaTurim: "shall be" (יִהְיֶה) in gematria is 30. It tells that there is no generation without thirty righteous, and they will be among Avraham's offspring. Lekach Tov says the same: the Eternal promised Avraham that the world would not lack thirty righteous in any generation.

How Kitzur Ba'al HaTurim and Midrash Lekach Tov explain it

Kitzur Ba'al HaTurim

"Shall be" (יהיה) in gematria is thirty: to tell you that there is no generation without thirty righteous. And so it says: to the number of "shall be" there will be righteous in your offspring, as it says: "and He said to him: so shall your offspring be".

Midrash Lekach Tov So shall your offspring be

He promised him that the world would not lack thirty righteous in every generation. "Shall be" (יהיה) is thirty.

Takeaway

The count: יִהְיֶה is י (10) + ה (5) + י (10) + ה (5) = 30.
Kitzur Ba'al HaTurim also counts the word "so" (כֹּה): כ (20) + ה (5) = 25. Avraham was 75 then, and 25 years later, at a hundred, Yitzchak was born to him.
The Talmud too speaks of thirty righteous in every generation (Chullin 92a).