41:1

וַיְהִי מִקֵּץ שְׁנָתַיִם יָמִים וּפַרְעֹה חֹלֵם וְהִנֵּה עֹמֵד עַל־הַיְאֹר׃

And it was at the end of two full years: Pharaoh was dreaming, and behold, he was standing by the Nile.

Bereshit 41:1

וַיְהִי מִקֵּץ שְׁנָתַיִם

Bereshit / Genesis 41:1 · Remez

Bereshit 41:1

וַיְהִי מִקֵּץ שְׁנָתַיִם יָמִים וּפַרְעֹה חֹלֵם וְהִנֵּה עֹמֵד עַל־הַיְאֹר׃

And it was at the end of two full years: Pharaoh was dreaming, and behold, he was standing by the Nile.

Remez רֶמֶז

Ten, and two more

The Torah does not say from which event to count the "two years". Baal HaTurim finds the answer in another verse with the same word, and Agra DeKala sees in the two years a hint of the whole history of the world.

Baal HaTurim: the word "at the end" (מִקֵּץ) also appears with Avraham: "at the end of ten years" (16:3). So here too ten years are meant, and two more. Agra DeKala: the "two years" are the two thousand years of "chaos" before Avraham. Pharaoh (פַּרְעֹה) comes from "to uncover", and "dreams" (חֹלֵם) from "to heal": the revelation of Torah begins to enter the world.

How Kitzur Ba'al HaTurim and Agra DeKala explain it

Kitzur Ba'al HaTurim And it was at the end

Here it says "at the end" (מִקֵּץ), and with Avraham it says "at the end of ten years" (Bereshit / Genesis 16:3). As there it is ten, so here it is at the end of ten years. And "and it was at the end" means at the end of ten, and two more years.

Agra DeKala

And there is a further hint: "and it was at the end of two years" (Bereshit / Genesis 41:1). This is the end of the first two thousand years, of "chaos" (Sanhedrin 97a), after which the two thousand years of Torah began, from Avraham. And this is "and Pharaoh dreamed": the revelation of Torah and prophecy began to grow strong in the world. For "Pharaoh" (פַּרְעֹה) means uncovering, as said above, and the word "dreamed" (חֹלֵם) is from "and You will heal me (וְתַחֲלִימֵנִי) and give me life" (Yeshayahu / Isaiah 38:16). Yet even then the Torah was not yet given, for one had to wait until Moshe came, the secret of knowledge, who was ready for it. And this is "and behold, he was standing by the river". We have already written that the "river" (יְאֹר) is the foundation of Binah, and from there is the level of Moshe, as written in the book "Meorei Or". And "standing" (עֹמֵד) means waiting, as in "He stands to judge the peoples" (Yeshayahu / Isaiah 3:13), a term of patience. "Behold, he was standing by the river" means patience in the matter, until the "river" comes, that is Moshe, who is ready for it. That is why the Torah was not given at once. Understand this.

Takeaway

Sanhedrin 97a: "The world lasts six thousand years: two thousand of chaos, two thousand of Torah, two thousand of the days of the Messiah." Agra DeKala reads the "two years" as the first two thousand.
The root פרע means "to uncover, let loose": "and he shall uncover the woman's head" (Bamidbar / Numbers 5:18). Hence "Pharaoh" as a hint of revelation.
Moshe is tied to the river from his first days: he was laid in a basket by the Nile, and Pharaoh's daughter named him "because I drew him out of the water" (Shemot / Exodus 2:10).