42:8

וַיַּכֵּר יוֹסֵף אֶת־אֶחָיו וְהֵם לֹא הִכִּרֻהוּ׃

And Yosef recognised his brothers, but they did not recognise him.

Bereshit 42:8

וַיַּכֵּר יוֹסֵף אֶת־אֶחָיו

Bereshit / Genesis 42:8 · Pshat

Bereshit 42:8

וַיַּכֵּר יוֹסֵף אֶת־אֶחָיו וְהֵם לֹא הִכִּרֻהוּ׃

And Yosef recognised his brothers, but they did not recognise him.

Pshat פְּשָׁט

He knew them, they knew him not

One verse earlier we were already told that Yosef saw his brothers and recognised them. Why repeat it? And how could ten brothers fail to recognise one? Rashi and Ramban explain both the outer reason and the inner one.

Rashi: Yosef had left his brothers already bearded, while they parted from him as a beardless youth. The midrash adds: he acknowledged them as brothers and pitied them, while they, when he was in their hands, did not acknowledge him as a brother. Ramban: the brothers never even imagined that the slave they sold had become ruler of the land.

How Rashi and Ramban explain it

Rashi And Yosef recognised

Because he had left them with full beards.
But they did not recognise him.
Because he left them without a beard, and now he came with a beard.
And the midrash expounds: "and Yosef recognised his brothers" — when they were handed over into his hands, he acknowledged that they were his brothers and had mercy on them. "But they did not recognise him" — when he fell into their hands, they did not acknowledge him so as to treat him as a brother.

Ramban But they did not recognise him

At all, and he no longer needed to disguise himself. Our sages (Yevamot 88a) explained the reason for the recognition: he had left them with full beards. And they did not recognise him because he left them without a beard, and now they found him with a beard. True, Yissachar and Zevulun are only a little older than Yosef, but since he recognised the elder ones, he recognised them all. Also, he recognised them by his own reasoning, since he expected them to come there. And they did not recognise him, because it never crossed their minds that the slave they had sold to the Ishmaelites was the ruler over the land. And Rabbi Avraham (Ibn Ezra on Bereshit / Genesis 42:7) said: "and he recognised them" — first he recognised that they were his brothers, and afterwards he looked at each one and recognised him.

Takeaway

Yosef was seventeen when he was sold, now he is about thirty-nine. The elder brothers were already over twenty then, and their faces changed less.
The word "recognised" (וַיַּכֵּר) stands next to "made himself a stranger" (וַיִּתְנַכֵּר, 42:7). It is the same root נכר: both "to recognise" and "to be foreign".
The midrash in Rashi turns the meaning around: "to recognise" means not only to see a face, but to acknowledge kinship and act as a brother.