מדרש אויף בראשית 14:11

וַ֠יִּקְחוּ אֶת־כָּל־רְכֻ֨שׁ סְדֹ֧ם וַעֲמֹרָ֛ה וְאֶת־כָּל־אָכְלָ֖ם וַיֵּלֵֽכוּ׃

און יענע האָבן צוגענומען דעם גאַנצן פֿאַרמעג פֿון סדום און עַמורָה, און דאָס גאַנצע עסנװאַרג זײערס, און זײַנען אַװעקגעגאַנגען.

Sefer HaYashar (midrash)

And Abram brought back all the property of Sodom, and Lot with all his property likewise, and ‎their wives, and their children, and all belonging to them; they missed not the least thing. And ‎when he returned from smiting those kings Abram and his men passed through the vale of ‎Siddim, the battle ground of all the kings, and behold Bera king of Sodom and the rest of his ‎men that were with him, crept out of the slime-pits whereinto they had fallen and they went ‎to meet Abram with bread and with wine, and they rested there together in the vale of the ‎king. And Adonizedek blessed Abram, and Abram gave unto Adonizedek a tenth part of all that ‎he brought back from the spoil of his enemies; for Adonizedek was the priest of God. And all ‎the kings of Sodom and Gomorrah came around Abram, and they begged him to return unto ‎them the captives and to retain all their other property for himself. And Abram said unto them ‎‎: As God liveth, he who created the heavens and the earth, and who hath delivered me from ‎all danger and who hath saved me to-day from my enemies and hath given them unto my ‎hands, if I will take the least thing from all belonging to you. And you shall not say to-morrow: ‎Abram hath enriched himself from our property which he took away from our enemies. For ‎the Lord my God, in whom I trust, spoke unto me, saying: Thou shalt not lack anything, for I will ‎surely bless thee in all the works of thy hands, which thou wilt do. And now behold, here is ‎everything belonging to you, take it and go; as the Lord liveth I will not take from you neither a ‎person nor a shoelatchet nor a thread, save only that the young men who went forth with me ‎and the portion of the men Oner Eshcol and Mamre, they and their men and those that kept ‎guard by the vessels, shall take their portion. And the King of Sodom gave portions to the men ‎as Abram had spoken, and they pressed Abram to select something for himself, but he would ‎not. And he dismissed the kings of Sodom with the remainder of their men, requesting them ‎to be kind to Lot, and they returned to their dwelling place. And Abram sent along with them ‎Lot and all his property, and he returned to his home in Sodom. And Abram and his men ‎returned to their homes in the grove of Mamre, which is in Hebron. At that time the Lord ‎appeared unto Abram, saying: Fear not Abram, thy reward will be very great before me, for I ‎will not forsake thee until I shall have increased thee and blessed thee. And I will make thy ‎seed like the stars of heaven which cannot be measured and cannot be numbered. And I will ‎give unto thy seed all the lands which thou seest with thy eyes, to them they are given a ‎possession forever, only be thou strong and do not fear, walk before me and be perfect.‎
פֿרעגט אַ רבֿBookmarkShareCopy

Pirkei DeRabbi Eliezer

THE TRIALS OF ABRAHAM (continued)
THE sixth trial was (when) all the kings came against him to slay him. They said: Let us first begin with the house of his brother, and afterwards let us begin with him. On account of Lot they took all (the wealth of) Sodom and Gomorrah, as it is said, "And they took all the goods of Sodom and Gomorrah" || (Gen. 14:11). Afterwards they took Lot captive, and all his wealth, as it is said, "And they took Lot… and his goods" (Gen. 14:12).
פֿרעגט אַ רבֿBookmarkShareCopy

Bereshit Rabbah

“They turned back, and came to Ein Mishpat, which is Kadesh, and smote the entire field of the Amalekites, and also the Emorites, who reside in Ḥatzetzon Tamar” (Genesis 14:4).
“They turned back, and came to Ein [Mishpat]…” – Rabbi Aḥa said: They came only to fight against the eyeball [ein] of the world;61Abraham is called the eyeball of the world, because it was only for his sake that God took an interest in and looked out for the benefit of the people of the world. they sought to blind the eye [ayin] that overcame the attribute of justice [mishpat] in the world.62Abraham. That is astonishing. “Which is [hi] Kadesh” – Rav Aḥa said: Hu is written. It is he [hu] who sanctified [kiddesh] the name of the Holy One blessed be He in the fiery furnace.
“And smote the entire field of the Amalekites” – Amalek had not yet been born, and yet you say: “And smote the entire field of the Amalekites”? The explanation is that [God] “tells the outcome from the outset” (Isaiah 46:10).63God knows the future, so He is able to name places after future events. “And also the Emorites, who reside in Ḥatzetzon Tamar” – in Ein Gedi, with the dates [temaraya].64The identification of Ḥatzetzon Tamar with Ein Gedi is stated explicitly in II Chronicles 20:2.
“The king of Sodom, the king of Gomorrah, the king of Adma, the king of Tzevoyim, and the king of Bela, which is Tzoar, went out and they waged a war with them in the valley of Sidim” (Genesis 14:8).
“With Kedorlaomer king of Eilam, and Tidal king of Goyim, and Amrafel king of Shinar, and Ariokh king of Elasar; four kings against the five” (Genesis 14:9).

“The king of Sodom, the king of Gomorrah…went out…with Kedorlaomer king of Eilam…” – four kings waged war against five, and yet they overcame them.
“The valley of Sidim was full of clay pits and the kings of Sodom and Gomorrah fled, and they fell there, and they who remained fled to the mountain” (Genesis 14:10).
“The valley of Sidim was full of clay pits” – many pits producing clay.
“The kings of Sodom and Gomorrah fled, and they fell there, 65“They fell there” means that they died in the pits. [and they who remained fled to the mountain]” – Rabbi Yehuda and Rabbi Neḥemya, Rabbi Yehuda says: “They fell there” – this refers to the multitudes; “and they who remained fled to the mountain” – this refers to the kings. Rabbi Neḥemya said: “They fell there” – this refers to the kings; “and they who remained fled to the mountain” – this refers to the multitudes.
According to the opinion of Rabbi Yehuda, it works out well, but according to the opinion of Rabbi Neḥemya, it is difficult.66In Genesis 14:17 we read that the king of Sodom survived. Rabbi Azarya and Rabbi Yonatan ben Ḥagai said in the name of Rabbi Yitzḥak: When Abraham descended into the fiery furnace and was saved, there were some idolaters who believed [the story of Abraham’s miraculous rescue], and there were some idolaters who did not believe. When the king of Sodom descended into the clay pit and was rescued, they began believing in [the rescue of] Abraham retroactively.
“They took all the property of Sodom and Gomorrah, and all their food, and they went” (Genesis 14:11).
“They took all the property of Sodom and Gomorrah, and all their food” – Rabbi Yehuda says: This refers to their tools of work.67“Their property” refers to their means of sustenance. Rabbi Neḥemya said: This refers to their dates.68Their main food staple.
“They took Lot, son of Abram’s brother, and his property and they went, and he resided in Sodom” (Genesis 14:12).
“They took Lot, [son of Abram’s brother]…” – this is what they did to Lot: They placed him in a cage and they took him with them.69This is derived from the fact that the words “they took” already appear in the previous verse. The repetition of these words here indicates that he was treated with special harshness. Why to such an extent?70What did Lot do to deserve such harsh punishment? “And he resided in Sodom” – in realization of what is stated: “One who walks with the wise will become wise, and one who consorts with fools will be broken” (Proverbs 13:20).
פֿרעגט אַ רבֿBookmarkShareCopy