II Kings7:3

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

And there were four men, lepers, at the entrance of the gate. And they said to one another: "Why do we sit here until we die?

II Kings 7:3

וְאַרְבָּעָה אֲנָשִׁים הָיוּ

Melachim II / II Kings 7:3 · Remez

II Kings 7:3

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

And there were four men, lepers, at the entrance of the gate. And they said to one another: "Why do we sit here until we die?

Remez רֶמֶז

The gates of Torah

The word "gate" (שַׁעַר) for the sages often means a place of learning. Nachal Sorek hears this hint in our verse.

The Chida in his book Nachal Sorek: "at the entrance of the gate" hints that they were occupied with Torah. But the remedy of the leper is in Torah: why then did they remain lepers? The answer: they are Gechazi and his sons, whom Elisha cursed to be lepers all their days.

How Nachal Sorek explain it

Nachal Sorek And four men were lepers at the entrance of the gate

In the Talmud they said: who were they? Gechazi and his three sons. And the great Rav Mahari explained: from the words "at the entrance of the gate" it follows that they were occupied with Torah, for "gate" is explained so in many places. Therefore they ask who they were. For the remedy of the leper is to be occupied with Torah, and these were occupied with Torah: why then did they remain lepers? And they answer: these are Gechazi and his sons, whom Elisha cursed to be lepers all their days. This is the gist of his words in short. And though one could answer back to his words, one can still find grounds to uphold them, and this is not the place to go into it.

Takeaway

"Gate" as a place of judgement and learning: judges and elders sat "at the gate" (Devarim / Deuteronomy 21:19, Rut / Ruth 4:1).
The Talmud says that Gechazi was great in Torah. That is why the question of Mahari is so sharp.