Bereshit / Genesis 18:1 · Pshat
וַיֵּרָא אֵלָיו יְהוָה בְּאֵלֹנֵי מַמְרֵא וְהוּא יֹשֵׁב פֶּתַח־הָאֹהֶל כְּחֹם הַיּוֹם׃
And the Eternal appeared to him by the oaks of Mamre, as he sat at the entrance of the tent in the heat of the day.
Pshat פְּשָׁט
Visiting the sick
The chapter opens strangely: "and the Eternal appeared to him", yet what He said is not written. Right after, Avraham sees three travellers. Why then did the Eternal come?
Rashi: it is the third day after Avraham's circumcision, and the Eternal came to visit the sick. He brought out the sun in heat so that guests would not trouble Avraham, and seeing him sad without guests, He sent angels in the form of men. Radak: the Eternal appeared to tell Avraham about Sedom: He did not want to judge without the knowledge of the greatest man of the generation.
How Rashi and Radak explain it
Rashi Appeared to him
To visit the sick. Rabbi Chama bar Chanina said: it was the third day after his circumcision, and the Holy One, blessed is He, came and asked after his health.
By the oaks of Mamre.
Mamre gave him advice about the circumcision, therefore He appeared to him in his territory.
Sat.
It is written without a vav (ישב), and can be read "sat down": he wanted to stand. The Holy One, blessed is He, said to him: sit, and I will stand. And you are a sign for your children: I will stand in the assembly of judges, and they will sit, as it says: "The Almighty stands in the divine assembly" (Tehillim / Psalms 82:1).
At the entrance of the tent.
To see whether a traveller was passing, and to bring him into his house.
In the heat of the day.
The Holy One, blessed is He, brought the sun out of its sheath so as not to trouble him with guests. And seeing that he was sad that no guests came, He brought the angels to him in the form of men.
Radak The Eternal appeared to him by the oaks of Mamre
In the place where he lived, as it says above: "and he dwelt by the oaks of Mamre the Emorite" (14:13). This tells that he did not leave there to live elsewhere, for his allies were there, and it is fitting for a person to live near those who love him, as Shlomo said: "better a near neighbour than a far brother" (Mishlei / Proverbs 27:10). And the Creator appeared to him there after the circumcision to tell him about Sedom. For Avraham was the greatest in the world in that generation, and He wished to bring judgement on part of the inhabited world and did not wish to do it without his knowledge. And to make known that He watches over those below, doing them good and harm according to their deeds. And although Avraham knew this by his own reason, He told him so that he would tell it to his children and his household after him, as it says (18:19). And also to show him what His judgement of the wicked is like and how long He is patient with them. And one may explain that this whole account, up to "and Avraham returned to his place" (18:33), was in a prophetic vision, all of it one vision. And it says that when this prophecy came to him, he was sitting at the entrance of the tent.
Takeaway
Avraham's circumcision is told at the end of the previous chapter (17:24–26). From there the Sages learn that the Eternal came to a sick man.
Mamre is one of Avram's three allies, with Aner and Eshkol (14:13, 14:24).
Visiting the sick is called in Hebrew "bikur cholim" (בִּקּוּר חוֹלִים). The Sages teach it from this verse: the Eternal visits the sick, and a person should do the same (Sotah 14a).