[(Genesis 15:1:) "Fear not, Abram."] This is what Scripture says (Proverbs 28:14): "Happy is the man who fears always, but he who hardens his heart shall fall into evil." And it is written (Proverbs 14:16): "A wise man fears and turns away from evil." Who is this? Abraham. And of whom was he afraid? Of Shem, whose sons he had killed — Chedorlaomer king of Elam and his three sons, as it is said (Genesis 10:22): "The sons of Shem: Elam, and Asshur, and Arpachshad, and Lud, and Aram." So he was afraid, saying: I have killed the sons of a righteous man, and now he will curse me and I will die. What did he do? Shem went out to meet him to appease him, as it is said (Genesis 14:18): "And Melchizedek king of Salem." The Holy One, blessed be He, said: By your life, I will not curse you, but rather I will bless you, as it is said (Genesis 14:19): "And he blessed him and said: Blessed be Abram, etc." He said to him: Because you killed my sons, I bless you, as it is said (Genesis 14:20): "And blessed be God Most High, who has delivered your enemies into your hand, etc." What is the meaning of "who has delivered (magen) your enemies"? The Holy One, blessed be He, made a shield (maginnah) and cast them down before you. And our father Abraham would take dust and throw it upon them, and it became arrows and bows; and he would take straw and throw it upon them, and it became swords and spears, as it is said (Isaiah 41:2): "Who has roused up righteousness from the east, etc. [his sword makes them like dust, his bow like driven straw]." This is Abraham, of whom it is said afterward: "He pursues them and passes on in peace." This is the meaning of "who has delivered your enemies into your hand, etc." The Holy One, blessed be He, said: After these things are you afraid? "Fear not, Abram." Therefore it is said (Proverbs 28:14): "Happy is the man who fears always."
Why Abram Feared Shem After Defeating Chedorlaomer
Midrash Tanchuma Buber, Lech Lecha 19:1
[אל תירא אברם] זש"ה אשר אדם מפחד תמיד ומקשה לבו יפול ברעה (משלי כח יד), וכתיב חכם ירא וסר מרע (שם יד טז), מי הוא זה אברהם, וממי היה מתירא, מן שם שהרג את בניו, את כדרלעמר מלך עילם, ושלשת בניו, שנאמר בני שם עילם ואשור וארפכשד ולוד וארם (בראשית י כב), והיה מתירא לומר הרגתי בניו של צדיק, ועכשיו הוא מקללני ואת מת, מה עשה יצא לקראתו שם לרצותו, שנאמר ומלכי צדק מלך שלם (שם יד יח), אמר הקב"ה חייך איני מקללך אלא מברכך, שנאמר ויברכהו ויאמר ברוך אברם וגו' (בראשית יד יט), א"ל בשביל שהרגת את בני אני מברכך, שנאמר וברוך אל עליון אשר מגן צריך בידך וגו' (שם שם כ), מהו אשר מגן צריך, מגינה עשה הקב"ה והפיל אותם לפניך, והיה אברהם אבינו נוטל עפר וזורקו עליהם ונעשים חצים וקשתות, ונוטל קש וזורק עליהם, ונעשה חרבות ורמחים, שנאמר מי העיר ממזרח צדק וגו' [יתן כעפר חרבו כקש נדף קשתו] (ישעיה מא ב), זה אברהם שנאמר אחריו, ירדפם יעבר שלום, הוי אומר אשר מגן צריך בידך וגו'. אמר הקב"ה אחר הדברים האלה אתה מתירא, אל תירא אברם, לכך נאמר אשרי אדם מפחד תמיד (משלי כח יד).