Isaiah51:12

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

I, I am He who comforts you. Who are you that you fear a man who will die, and a son of man who is made like grass?

Isaiah 51:12

אָנֹכִי אָנֹכִי הוּא

Yeshayahu / Isaiah 51:12

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

I, I am He who comforts you. Who are you that you fear a man who will die, and a son of man who is made like grass?

Pshat פְּשָׁט

Whom do you fear?

Rashi: you, daughter of the righteous, full of merits, why do you fear a man who will die? Metzudat David: "I, I": the Omnipresent Himself answers that it is He who comforts, so this comfort is real. Radak: Scripture speaks now to each one, now to the whole people. Shadal: the One who was with you at the exodus from Egypt will comfort you now too. Even if you are small in your own eyes, you are the people of the Eternal.

How Rashi, Metzudat David, Radak, and Shadal explain it

Remez רֶמֶז

Twice "I"

Agra DeKala: by the scribes' count, the word "and from" (וּמִבֶּן) occurs twice: of the Levites, who leave heavy work at fifty, and here, of man who is made like grass. The hint: by fifty the body weakens and the soul grows stronger, and a person moves from carrying to counsel. Chida: "I" is said twice, because two times already make a rule. The earlier redemptions came through a messenger, and the two Temples were built by people. But the future redemption and the Third Temple are the work of the Holy One, blessed is He, Himself, and they are forever.

How Agra DeKala and Nachal Sorek explain it

Drash דְּרָשׁ

No comforters were found

Pesikta DeRav Kahana: when the enemies entered Jerusalem, the Ammonites and Moabites carried the cherubim out of the Holy of Holies and mocked Israel. The people looked for comforters and found none. Then the Holy One, blessed is He, said: "I, I am He who comforts you." Midrash Lekach Tov: "I" (אָנֹכִי) is a word of comfort, of warning and of help.

How Pesikta DeRav Kahana and Midrash Lekach Tov explain it

Sod סוֹד

I am I

Ba'al Shem Tov: when you know that there is no "I" but His "I", then He is the One who comforts you. Kedushat Levi: the Creator wants to give more than a person wants to receive. When people cannot receive His bounty, as it were there is no wholeness in Him either. "I, I": I remain Myself, without change, and that itself is your comfort.

How Ba'al Shem Tov and Kedushat Levi explain it