גלית הפלשתי: המדרש הזה יסודו בארמית בסנהדרין צ"ה ע"א: יומא חד נפק לשכור (לכפר) בזאי אתא שטן ואדמי לי כטביא (צבי) וכו׳ ונעתק לעברית בכמה שנוים ובפרט בתחלתו, כי לפי המסופר באגדת התלמוד קרה המאורע הזה לדוד לכפרת עונו שעל ידו נהרגו הכהנים בנוב ונטרד דואג האדומי ונהרגו שאול ושלשת בניו, וא״ל הקב״ה רצונך יכלו זרעך או תמסר ביד אויב? אמר לפניו רבש״ע מוטב אמסר ביד אויב ולא יכלו זרעי ונמסר ביד ישבי בנוב. אבל בהעתקה העברית נענש דוד על שהתגאה יותר מדאי בגבורתו ולא ידע כי הגבורה באה לו מאת ה'. Goliath the Philistine: The foundation of this Midrash is in Aramaic in Sanhedrin 95a: 'One day he went out to hunt, Satan came and appeared to him like a deer, etc.' and it was translated to Hebrew with several changes, especially at the beginning. According to the legend in the Talmud, this event happened to David as atonement for his sin, which led to the killing of the priests in Nob. As a result, Doeg the Edomite was pursued and King Saul and his three sons were killed. God said to him, 'Would you prefer your descendants to be destroyed, or to be delivered into the hands of an enemy?' David replied, 'Master of the Universe, it's better for me to be delivered into the hands of an enemy so that my descendants are not destroyed.' And he was delivered into the hands of Ishbi-Benob. However, in the Hebrew translation, David was punished for boasting excessively about his strength, not realizing that the strength came from God.
מדרש גלית הפלשתי הוא חלק מהמדרש אל יתהלל שנדפס פה בשתי נוסחאות, ובו נכללו שלמה דוד וקרח, שכל אחד התגאה בתכונתו זה בחכמתו זה בגבורתו וזה בעשרו וכלם נענשו. יעלינעק הדפיס מדרש גולית (גלית) הפלשתי מכ״י שאלוניקי שנמצא באוקספורד בבית המדרש חדר ד' וזו נוסחתו: "The Midrash Goliath the Philistine is part of the Midrash 'Do not boast' which was printed here in two versions. It included Solomon, David, and Korah, where each one boasted about his quality; one in his wisdom, one in his strength, and one in his wealth, and all were punished. Ya'alin'ek printed the Midrash Goliath (Galit) the Philistine from the 21st of Saloniki found in Oxford in the study room, room D, and this is its version