אמר רבי זכריה משום רבי ישמעאל ביקש הקב"ה להוציא כהונה משֵם שנאמר והוא כהן לאל עליון (בראשית יד, יח) כיוון שהקדים ברכת אברהם לברכת המקום הוציאה מאברהם
R. Zekharja sagte im Namen R. Jišma͑éls: Der Heilige, gepriesen sei er, wollte die Priesterschaft von Šem hervorgehen lassen, denn es heißt: <i>und er war Priester dem höchsten Gott</i>; als dieser aber den Segen Abrahams dem Segen Gottes vorangehen ließ, ließ er sie von Abraham hervorgehen.
Or HaChaim
ומלכי צדק מלך שלם, And Malki Tzedek the king of Salem, etc. Our sages (Midrash Aggadah) claim that Malki Tzedek was identical with Noach's son Shem. The reason that the Torah interrupts the report of Lot's rescue by reporting Malki Tzedek's arrival is to contrast his behaviour with that of the king of Sodom. Whereas Malki Tzedek came with gifts and a blessing though Abraham had done nothing for him, the king of Sodom came empty-handed although he owed Abraham a great debt of gratitude for having saved both his life and his kingdom. The Torah merely shows the difference between the behaviour of the wicked and that of the just.
Rashi
ומלכי צדק AND MELCHIZEDEK — A Midrashic explanation is that he is identical with Shem, son of Noah (Nedarim 32b).
Ramban
AND HE WAS PRIEST OF G-D THE MOST HIGH. This is stated in order to inform us that Abraham would not give a tithe to the priest of other gods, but since he knew that he was a priest of G-d the Most High, he gave him the tithe as an honor to G-d. He alluded to Abraham through this episode that the House of G-d will be there, and there his descendants will bring the tithe and the Heave-offering,179Malachi 3:8. and there they will bless the Eternal.
Now according to the opinion of our Rabbis180Nedarim 32b. who say that Melchizedek was Shem, the son of Noah, we must say that he left his country in the east181See above, 10:30. and came to Jerusalem to worship the Eternal. He became the people’s priest of G-d the Most High since he was the honored one among their father’s brothers,182That is, of the three sons of Noah — Shem, Ham and Japheth — Shem was the most honored. Now since according to the Rabbis, Melchizedek is none other than Shem, the Canaanites who were then in possession of Jerusalem recognized in Shem their father Ham’s most honored brother and therefore appointed him “priest of G-d the Most High.” as Jerusalem was ever in the boundary of the Canaanites.
Now Rashi wrote above, “And the Canaanite was then in the land.183Above, 12:6. They were gradually conquering the land of Israel from the descendants of Shem, the ancestor of Abraham, for it had fallen to the share of Shem when Noah apportioned the earth among his sons, as it is said, And Melchizedek king of Salem.”
This is not correct because the boundary of the Canaanite was from Sidon,184Ibid., 10:19. which includes all of the land of Israel. The boundary of the children of Shem, on the other hand, was to the east of Mesha,185Ibid., Verse 30. far from the land of Israel. But if Noah apportioned the countries among his sons and gave Shem the land of Israel, it would be similar to the case of a person who apportions his goods by word of mouth.186Baba Bathra 156a. That the land of Israel should belong to the descendants of Shem would thus be a special oral provision by Noah since all their other lands were to the east of Mesha, far from the land of Israel. Meanwhile, the children of Canaan, [who were the descendants of Ham], settled there until the time came when G-d caused the seed of His friend Abraham187Isaiah 41:8. The seed of Abraham My friend. to inherit it, as I have already mentioned.188Above, 12:6.
Now according to the opinion of our Rabbis180Nedarim 32b. who say that Melchizedek was Shem, the son of Noah, we must say that he left his country in the east181See above, 10:30. and came to Jerusalem to worship the Eternal. He became the people’s priest of G-d the Most High since he was the honored one among their father’s brothers,182That is, of the three sons of Noah — Shem, Ham and Japheth — Shem was the most honored. Now since according to the Rabbis, Melchizedek is none other than Shem, the Canaanites who were then in possession of Jerusalem recognized in Shem their father Ham’s most honored brother and therefore appointed him “priest of G-d the Most High.” as Jerusalem was ever in the boundary of the Canaanites.
Now Rashi wrote above, “And the Canaanite was then in the land.183Above, 12:6. They were gradually conquering the land of Israel from the descendants of Shem, the ancestor of Abraham, for it had fallen to the share of Shem when Noah apportioned the earth among his sons, as it is said, And Melchizedek king of Salem.”
This is not correct because the boundary of the Canaanite was from Sidon,184Ibid., 10:19. which includes all of the land of Israel. The boundary of the children of Shem, on the other hand, was to the east of Mesha,185Ibid., Verse 30. far from the land of Israel. But if Noah apportioned the countries among his sons and gave Shem the land of Israel, it would be similar to the case of a person who apportions his goods by word of mouth.186Baba Bathra 156a. That the land of Israel should belong to the descendants of Shem would thus be a special oral provision by Noah since all their other lands were to the east of Mesha, far from the land of Israel. Meanwhile, the children of Canaan, [who were the descendants of Ham], settled there until the time came when G-d caused the seed of His friend Abraham187Isaiah 41:8. The seed of Abraham My friend. to inherit it, as I have already mentioned.188Above, 12:6.