Shemot3:14

וַיֹּאמֶר אֱלֹהִים אֶל־מֹשֶׁה אֶהְיֶה אֲשֶׁר אֶהְיֶה וַיֹּאמֶר כֹּה תֹאמַר לִבְנֵי יִשְׂרָאֵל אֶהְיֶה שְׁלָחַנִי אֲלֵיכֶם׃

And the Almighty said to Moshe: "I will be what I will be (אֶהְיֶה אֲשֶׁר אֶהְיֶה)." And He said: "Thus shall you say to the children of Israel: 'I Will Be' (אֶהְיֶה) has sent me to you."

Shemot 3:14

וַיֹּאמֶר אֱלֹהִים אֶל־מֹשֶׁה

Shemot / Exodus 3:14 · Remez

Shemot 3:14

וַיֹּאמֶר אֱלֹהִים אֶל־מֹשֶׁה אֶהְיֶה אֲשֶׁר אֶהְיֶה וַיֹּאמֶר כֹּה תֹאמַר לִבְנֵי יִשְׂרָאֵל אֶהְיֶה שְׁלָחַנִי אֲלֵיכֶם׃

And the Almighty said to Moshe: "I will be what I will be (אֶהְיֶה אֲשֶׁר אֶהְיֶה)." And He said: "Thus shall you say to the children of Israel: 'I Will Be' (אֶהְיֶה) has sent me to you."

Remez רֶמֶז

Twelve letters

"Ehyeh" (אֶהְיֶה) sounds three times in the verse: twice in "I will be what I will be" and once more in "'I will be' has sent me". The midrash counts the letters, and Kedushat Levi multiplies them. What comes out?

Midrash Lekach Tov: three "Ehyeh" make twelve letters, as many as the tribes of Israel. "I will be with you in this bondage, and I will be with you in the bondage of four kingdoms": four letters, four exiles. Moshe asks: enough trouble in its own time. And one "Ehyeh" remains: Egypt alone, four hundred years. Kedushat Levi: the letters of the Holy One's Name (ה, ו, י) are special. Multiply five by five, twenty-five. Twenty-five by twenty-five, six hundred twenty-five. And five is always at the end. Six by six, thirty-six. The letters of the Name do not change, as it says: "I am the Eternal, I have not changed" (Malachi 3:6).

How Midrash Lekach Tov and Kedushat Levi explain it

Midrash Lekach Tov I will be what I will be. And He said: so shall you say to the children of Israel: "I will be" has sent me to you

Three "Ehyeh" in twelve letters, corresponding to the twelve tribes of Yeshurun. "I will be what I will be": the Holy One, blessed is He, said to him: you said to Me "and they will say to me: what is His name?" Tell them: I will be with you in this bondage, and I will be with you in the bondage of four kingdoms, four letters, corresponding to four exiles. He said before Him: Master of the world, enough trouble in its own time! Why should I tell them of other exiles? At once: "and He said: so shall you say to the children of Israel: 'I will be' has sent me to you", about the exile of Egypt alone, four hundred years, corresponding to the letters of "Ehyeh".

Kedushat Levi And He said: I will be what I will be

Let us explain why the main name of the Creator is the Name HaVaYaH (הוי"ה), blessed is He. Know that the letters of this Name, however many times you multiply them by themselves, you will have to write the same letter at the end. And with other letters it is not so. If you multiply the letter bet (2), you have to write another letter, dalet (4). If you multiply gimel three times three, it is tet (9). And dalet four times four is yod-vav (16). But the letter he of His Name, if you multiply five by five, at the end is he: twenty-five. And twenty-five times twenty-five is six hundred twenty-five. And so without number the letter he is needed at the end. And likewise the letter vav: six times six is thirty-six, and without number it is all vav at the end. And likewise yod: ten times ten, though it is a hundred, the main number is one (yod). Therefore the Name of the Creator is written with these letters. And this is hinted in the verse: "I am the Eternal, I have not changed" (Malachi 3:6).

Takeaway

Hebrew letters are also numbers: א = 1, ב = 2, ג = 3, ד = 4, ה = 5, ו = 6, ז = 7, ח = 8, ט = 9, י = 10.
Let us check: 5 × 5 = 25, 25 × 25 = 625, 6 × 6 = 36, 36 × 36 = 1296. The last digit stays the same. But 2 × 2 = 4, 3 × 3 = 9, 4 × 4 = 16.
The "four kingdoms" of the midrash are Babylon, Persia, Greece and Rome (Bereshit Rabbah 44:17).