Shemot / Exodus 8:2 · Remez
וַיֵּט אַהֲרֹן אֶת־יָדוֹ עַל מֵימֵי מִצְרָיִם וַתַּעַל הַצְּפַרְדֵּעַ וַתְּכַס אֶת־אֶרֶץ מִצְרָיִם׃
And Aharon stretched out his hand over the waters of Egypt, and the frog came up and covered the land of Egypt.
Remez רֶמֶז
They went up to give themselves
Sometimes a word appears in the Torah only twice. The learned scribes marked such pairs. Put the two places together, and the second may explain the first.
Agra DeKala: the word "and bring up" (וְהַעַל) appears in the Torah twice: here, "and bring up the frogs," and about Aharon (Aaron): "and bring them up to Mount Hor," where Aharon died. This hints at the sages' words: the frogs gave themselves up to death at the Eternal's command. As Aharon's going up was to death, so it is here. Baal HaTurim on the same count: Chananyah (Hananiah), Mishael and Azaryah (Azariah) learned from the frogs to give themselves up for the Name, and were saved. Moshe (Moses) and Aharon did not draw this conclusion and did not enter the land.
How Agra DeKala and Kitzur Ba'al HaTurim explain it
Agra DeKala "And bring up the frogs" (Shemot / Exodus 8:1)
Twice in the scribes' count (מָסוֹרָה): this place, and the other: "take Aharon and so on, and bring them up to Mount Hor" (Bamidbar / Numbers 20:25). This hints at what the sages, of blessed memory, said (Pesachim 53b): the frogs gave themselves up to death at the command of the Eternal, blessed is He. And this is learned from there: as there, with Aharon, the going up was to death, so it is here.
Kitzur Ba'al HaTurim "And bring up" (Shemot / Exodus 8:1)
Twice in the scribes' count (מָסוֹרָה): here, and the other: "and bring them up (וְהַעַל) to Mount Hor" (Bamidbar / Numbers 20:25). As it is brought in Pesachim: what did Chananyah, Mishael and Azaryah see, that they gave themselves up to the fire? They reasoned "all the more so" (קַל וָחֹמֶר) for themselves from the frogs. The frogs gave themselves up to death to sanctify the Name, and afterwards they were saved, as it is written: "and the frogs died out of the houses, out of the courtyards and out of the fields" (8:9), but not out of the ovens. But Moshe and Aharon, of whom it is said: "because you did not believe in Me, to sanctify Me" (Bamidbar / Numbers 20:12), did not reason "all the more so" from the frogs: they died and did not merit to enter the land.
Takeaway
The scribes' count (מָסוֹרָה) notes how many times a word appears in the Tanakh. The word וְהַעַל, "and bring up," stands in the Torah twice: "and bring up the frogs upon the land of Egypt" (8:1) and "and bring them up to Mount Hor" (Bamidbar / Numbers 20:25).
In the Talmud Todos of Rome teaches: Chananyah, Mishael and Azaryah went into the furnace having learned from the frogs. The frogs were not commanded to sanctify the Name, and still they threw themselves into the ovens. All the more so we (Pesachim 53b).
On Mount Hor Moshe took the kohen's garments off Aharon and put them on Elazar (Eleazar) his son. There Aharon died (Bamidbar / Numbers 20:26–28).
"All the more so" (קַל וָחֹמֶר) is a conclusion from the light to the strict: if the frogs, who were not commanded, did so, all the more so people.
The words "because you did not believe in Me" were said to Moshe and Aharon at the waters of Merivah, when Moshe struck the rock (Bamidbar / Numbers 20:11–12).