TheWholeTorah.aiBeta

Psalm 52 - The Slander of Doeg - Part II

Introduction: Continuation of the Psalm Concerning Doeg the Edomite

Psalm 52 was composed regarding Doeg the Edomite, who informed King Saul about Achimelech the son of Achituv, leading directly to the slaughter of Nov, the city of Kohanim. In this part of the lesson, we continue from the fifth verse, where King David exposes the root of Doeg's wickedness: this was no innocent error, but a conscious choice of evil, and an intentional path of distortion and concealment.

"You Loved Evil More Than Good" - Choosing Evil
אָהַבְתָּ רָּע מִטּוֹב, שֶׁקֶר מִדַּבֵּר צֶדֶק סֶלָה׃ - You loved evil more than good, falsehood rather than speaking righteousness, Selah.

Ibn Ezra offers two interpretations of the word mitov ("more than good"): first, that you loved evil more than good; and second, that mitov means "in place of good", meaning that you chose evil instead of good - though he notes that we do not find such a linguistic usage elsewhere in Scripture. The Radak explains what this "evil" was: the lie told by Doeg that Achimelech knew David was fleeing. To this David responds - in truth, he had no idea that David was on the run.

The Alshich delves deeper into this matter. If you claim that your intention was not toward evil, but rather to uphold the attribute of truth, and that you merely recounted everything that transpired and reported the facts - David answers him: "You loved evil more than good." If only you had truly and innocently related the facts as they were; the very manner in which you presented them proves that you loved evil more than good.

Falsehood Is Not Inherently Evil

And what was the "good" that you did not love? The Alshich explains: falsehood in and of itself is neither inherently bad nor inherently good - everything depends on how and where it is used. In the right place it is good, and in the wrong place it is bad. Rav Dessler devoted an entire discourse to this principle (as explored in lessons on Michtav Me-Eliyahu), explaining that falsehood is not an intrinsically negative entity. Even in its fundamental definition, Rav Dessler establishes: falsehood is not merely "factual inaccuracy", but rather whatever leads to evil; and truth is whatever leads to good. This is the definition, contrary to common assumption.

The Alshich presents an example: someone comes and asks you about a certain individual - did he do such-and-such? You know that if you confirm it, he will become enraged and perhaps even go and harm him. Confirming this would be forbidden lashon hara, and you are obligated to tell him that the person did not do it. If one can evade the question and respond in a way that he infers it on his own, that is preferable, such as saying: "Why would you think he would do such things? Where did you get that idea?" - one has not explicitly stated he did not do it, merely asked a question. But if he presses the matter, it is permitted to say explicitly: he did not do it.

So too we find: Avraham says to Sarah, "Please say you are my sister"; Yaakov says, "It is I, Esav your firstborn." Was this falsehood? No, because since it leads to truth, righteousness, and what is proper, it is not called a lie. The Gemara teaches that one may deviate from the strict facts for the sake of peace, and enumerates several situations where one ought to deviate. Clearly, there are times when deviating from the literal truth is a virtue.

Conversely, telling the factual truth in certain situations can bring about catastrophic destruction. A person may boast, "I am a man of truth, I only spoke the truth" - yet through stating that "truth", one can destroy entire worlds and cause terrible damage. There is a story of a philosopher for whom truth was paramount above all else. Late one night, a man burst into his home like a storm: "They are chasing me to kill me!" - and hid under the bed. The pursuers burst in with knives drawn and demanded, "Did someone come in here?" The philosopher replied: "Truth is dearer than all - he is under the bed." The outcome goes without saying. Would anyone think: "What a man of truth, commendable"? That is not truth; that is wickedness. Truth, in certain circumstances, brings ruin to the world, as in lashon hara and similar examples. And sometimes, departing from the literal facts is good, because it preserves peace.

This is the meaning of "falsehood rather than speaking righteousness, Selah" - at times, departing from literal truth is more necessary than speaking factual righteousness. Do not say, "Selah, forever I speak only strict truth and literal justice" - know that in such situations, concealing the truth is what is necessary and preferred. You, by contrast, loved evil more than good, and not only that, you actively sifted the waste from the food to present the worst possible picture.

"You loved all devouring words" - A One-Sided Presentation
אָהַבְתָּ כָל דִּבְרֵי בָלַע, לְשׁוֹן מִרְמָה׃ - You loved all devouring words, deceitful tongue.

What did Doeg say to Shaul? "He inquired of Hashem for him, and gave him provisions, and gave him the sword of Goliath." The story was long, but what did Doeg do? He plucked specific anecdotes out of it - precisely those that served the narrative he wanted to convey.

Notice that this has not changed: this is precisely modern media. Even assuming they are reporting facts (and often they are simply fabricating), it is a one-sided presentation of the facts. And when they know you have a devastating response that will completely refute their claims, they do not even ask for a response, because the moment a response is given, it becomes clear there is no story. But they need a story: the public is waiting at eight or nine in the evening to hear scoops, and the daily pound of flesh and blood must be delivered. So they take certain anecdotes out of the story and report them without addressing the broader context, which portrays everything in a completely different light.

This is exactly what Doeg the Edomite did. He was the first media operative; he could have founded a journalism school. You reported that "he inquired of Hashem for him," you reported that "he gave him a sword and provisions" - but what happened in between, you failed to mention: that Achimelech asked, "Why are you alone, and no one is with you?" - he investigated; it seemed strange to him. And David's reply, that King Shaul had charged him with a mission. And David's words, "And he said to me: Let no man know anything" - David warned him not to tell, claiming it was a secret mission from Shaul, which itself proves that Achimelech acted in complete good faith. And when David asked, "What is on hand?" Achimelech said five loaves of bread, and at first refused to give the showbread (Lechem HaPanim), consenting only after David said his men were in mortal danger. And when David asked for a sword, Achimelech said he had none except the sword of Goliath, giving it to him only after David pressed him.

All of this dialogue, which would have presented Achimelech in a pure, innocent light, he omitted. He recounted only the details that would malign Achimelech and David. This is the meaning of "You loved all devouring words" - you focused on words of destruction rather than the truth. "You loved evil more than good" - there was an entire story, yet you sifted out the sinister points and omitted the good. This demonstrates that you possess a "deceitful tongue," that you are like a "sharp razor, working deceit," and it proves that your entire aim was to bring down Achimelech ben Achituv, slandering him so that Shaul would see how devoted and loyal you are to him: Shaul had complained, "no one discloses to my ear" - so Doeg came and said, let me tell you. It reveals the sheer wickedness of your heart.

The Malbim explains in this same vein: we cannot judge you favorably and say you simply made an honest mistake, suspecting Achimelech of ill intent. The proof lies right here: how is it that from the entire story you selected only the negative details? Had you acted in good faith, you would have told the whole story. Why didn't you mention that David was seized by ravenous hunger? Had you related everything, one might judge you favorably and say you merely reported what you saw. But when you actively sift the waste from the food, it proves a malicious agenda.

The Gemara in Sanhedrin: Even the Praise Was Lashon Hara

There is a Gemara in Sanhedrin (93b), discussed at length in Ein Yaakov: "Then one of the young men answered and said: Behold, I have seen a son of Yishai the Bethlehemite, who is skillful in playing, a mighty man of valor, a man of war, prudent in speech, a handsome person, and Hashem is with him." Who said this verse? Doeg the Edomite. What lavish praise - six types of accolades flowing from Doeg's mouth. Yet Rav Yehudah said in the name of Rav: Doeg spoke this entire verse solely as lashon hara. Doeg did not suddenly become righteous; he said this with deeply malicious intent. As mentioned, Doeg was exceptionally clever at doing evil - a polished sword, a sharp razor poised to harm.

The Gemara explains: "Skillful in playing" - he knows how to ask questions; "a mighty man" - he knows how to answer; "a man of war" - he knows how to debate in the battle of Torah; "a handsome person" - he demonstrates sound reasoning in Halachah; "prudent in speech" - he deduces one matter from another; "and Hashem is with him" - the Halachah is in accordance with his rulings everywhere. Why did Doeg do this? To arouse Shaul's jealousy: Master, here is someone with talents unlike anything you have ever seen; how can you or your son even compare? Look who he is.

The Gemara says: For all of these qualities, Shaul replied to him, "My son Yonatan is his equal." Whatever praise you offer about him, my son Yonatan is no less accomplished. But once Doeg said to him, "and Hashem is with him" - a quality that even Shaul himself lacked - Shaul's spirit fell, and he became intensely jealous of him. For "Hashem is with him" was something not even Shaul possessed, let alone his son. Of Shaul it is said, "and Hashem has departed from me," and "wherever he turned he was condemned"; whereas of David it is written, "and in everything he undertook, he succeeded." And according to the homiletic interpretation, "Hashem is with him" means that the Halachah follows him everywhere. Here, Shaul could no longer say, "My son Yonatan is his equal," for two sages cannot both have the Halachah follow them everywhere; their rulings inevitably conflict. Once Doeg told him the Halachah follows David everywhere, it was over.

And from where do we know that this was Doeg? The Gemara asks: How do we know it was Doeg, when the verse merely states, "one of the young men"? It is written here, "Then one of the young men answered" - meaning the most distinguished among the young men; and it is written elsewhere, "Now a certain man of the servants of Shaul was there that day, detained before Hashem; and his name was Doeg the Edomite, the chiefest of the herdsmen that belonged to Shaul."

The Good Spoken Out of Love for Evil

Based on this, the Malbim beautifully explains the phrase "You loved evil more than good": that even when you spoke of something good, it was born out of a love for evil. You related a positive story, saying, "Look at David, look at his extraordinary qualities" - but why did you recount this? In order to draw evil from it, to provoke Shaul to jealousy against David and make him his enemy. It turns out that even when you do good, your objective is to extract evil from that good, to produce harm from an ostensibly positive statement.

"A Deceitful Tongue" and the Episode of the Amalekite Youth

"Devouring words" (divrei vala) - the Radak explains this as words of destruction, for his words led to the destruction of the entire family of Achimelech ben Achituv and all of Nov, the city of the Kohanim. And "a deceitful tongue" connects back to "you loved": you loved all devouring words, and you loved a deceitful tongue. The entire account was deceitful, as you framed the whole narrative according to how you wished to present it negatively.

Here the Malbim presents a wondrous explanation. Chazal teach that the Amalekite convert who came to report Shaul's death to David was none other than Doeg the Edomite (Amalek being descended from Edom as well). That youth recounted to David: I was with Shaul, he fell into mortal danger and asked me, "Kill me" - and so I killed him. In reality, however, as the Malbim explains, Doeg did not kill him at all; Shaul fell upon his own sword. But Doeg, true to character, was always concerned with currying favor with the ruling power: initially with Shaul, which is why he gossiped and defamed David to win favor and gain a position. Now, realizing that Shaul's reign was over and that David was the rising power, he sought to ingratiate himself with David: "I killed Shaul" - thinking this would earn him prestige, reward, and a high appointment.

Yet instead, David told him, "Your blood is upon your own head, for your own mouth has testified against you, saying, 'I have killed Hashem's anointed.'" And at that very moment, according to Chazal, David had Doeg put to death. This incident took place some time after the tragedy of Nov, the city of Kohanim - not years later, as Shaul's entire reign lasted only two years - following the battle against the Philistines in which Shaul died.

This seems difficult to understand: according to the Malbim, Doeg did not actually kill Shaul at all and only fabricated the story to curry favor with David. Why, then, did David sentence him to death? The Malbim explains: although you uttered a falsehood just now, you sealed your own fate through the words of your mouth, for what emerged from your lips was not an absolute lie. You said, "I have killed Hashem's anointed" - and who is called an anointed one (mashiach)? One who has been anointed with sacred oil. A king is called mashiach, and the Kohen Gadol is called mashiach (as well as the Kohen designated for war, who accompanied the army into battle, who was known as Kohen Mashuach Milchamah). You intended Shaul, which was untrue. But your own mouth tripped you up: the anointed of Hashem whom you truly put to death was Achimelech ben Achituv, whom you murdered with your own hands. This is the meaning of "a deceitful tongue" and "you loved all devouring words" - you did not realize that your own tongue ensnared you. Now you shall be executed for unjustifiably killing Achimelech ben Achituv through that very slander you spoke to Shaul.

And what is the meaning of "devouring words" (divrei vala)? The Malbim offers two explanations. First, it connotes destruction, as in "and destroy (vile'u) the way of your paths." Second, it is related to concealment: words of hiding, deceit, and duplicity - where a person conceals things within other words, all through cunning. This parallels the phrase "when the holy things are covered" (k'vala et hakodesh), referring to the covering of the sacred vessels. Similarly, regarding "and the thin ears swallowed (vativalana) the plump ears," one explanation among the commentators is that this does not denote eating, but rather covering - that they grew and concealed them, like k'vala et hakodesh. Here too, "you loved all devouring words" means speaking with concealment and obfuscation, through trickery, in order to appear righteous: "I only have Shaul's best interests at heart" - yet these were deceptive, concealed words.

"God Too Shall Tear You Down Forever" - The Punishment
גַּם אֵל יִתָּצְךָ לָנֶצַח, יַחְתְּךָ וְיִסָּחֲךָ מֵאֹהֶל, וְשֵׁרֶשְׁךָ מֵאֶרֶץ חַיִּים סֶלָה׃ - God too shall tear you down forever; He will break you and pluck you from the tent, and uproot you from the land of the living, Selah.

Here David delivers his "blessing" upon him. "Shall tear you down" (yitatzecha) - Rashi explains this in the sense of demolition (netitzah). "Will break you" (yachtecha) - an expression of breaking, from the root of nichat, to be broken. "And pluck you from the tent" (veyissachecha me'ohel) - He will uproot you from the tent. The Radak explains the meaning of "God too" (gam): measure for measure against what you did - just as you tore down the priestly families from Hashem's tent, so too will Hashem tear you down and uproot you from the tent, leaving no remembrance of you in the tent. "And uproot you" (veshereshecha) - He will uproot you from the very roots so that no remnant or survivor remains of you; "from the land of the living" - nothing will remain of you in this world. Another possibility: "the land of the living" refers to the World to Come, as Chazal expound that Doeg is one of the four commoners who have no share in the World to Come.

The Malbim explains yachtecha as taking or scooping up, as in "Can a man scoop up (hayachteh) fire into his bosom and his clothes not be burned?" Scooping fire from the hearth means taking fire; thus, yachtecha means He will take you away from the tent. And yissachecha is an expression of razing and tearing down, as in "Hashem will tear down (yisach) the house of the proud." The Radak quotes in the name of his father that yachtecha connotes burning, derived from that same verse, "Can a man scoop up fire" - akin to the expression used today to rake or stoke glowing embers, to kindle the fire. That is to say, Hashem will set you ablaze and burn you forever.

The Alshich: "Gam Kel" - Even the Attribute of Chesed

The holy Alshich notes precisely: It does not use the Name Elokim (denoting justice), but rather "Gam Kel" (Even Kel), which represents the attribute of chesed (kindness) - even this attribute will break you down forever. For Chazal teach that when it comes to the wicked, as it were, the attribute of mercy agrees with the attribute of justice that retribution must be exacted from him; whereas with the righteous, the attribute of justice agrees with the attribute of mercy to show him compassion. That is the difference between a wicked person and a tzaddik. And here with you, even "Kel", in the aspect of "the kindness of God endures all day", demands to tear you down forever.

"And pluck you out of your tent" - what is this tent? The Beit Midrash, as it is written, "This is the Torah, when a man dies in a tent," which Chazal expounded as referring to the Beit Midrash. This is also what Chazal meant when they said that the Holy One, blessed be He, caused him to forget his Torah - Doeg forgot his learning, and they banished him from the Beit Midrash. And it is a Gemara in Sanhedrin: Doeg did not die until he forgot his learning. The Midrash states: Three destructive angels were dispatched to him - one that made him forget his learning, one that burned his soul, and one that scattered his ashes in the synagogues and study halls.

And this is "He shall snatch you away" (yachtecha) - through the forgetting of Torah you will be humbled and subdued, for there is no longer Torah within you; and thereby "pluck you out of your tent", removing you from the tent. Why? Because the tree of life is no longer with him and he is uprooted from his source - and this is "and root you out" (veshereshecha). The Mahariatz Dushinsky explains: As long as he possessed Torah, he could not be punished. What did the Holy One, blessed be He, do in order to punish him? He distanced him from the tent, sent an angel who caused him to forget his Torah, and now that the tree of life was no longer with him and he was uprooted from his source, the retribution he deserved could be brought upon him.

The Malbim delineates the progression: "God shall also break you down forever" - the destruction of the structure of his physical body; "He shall snatch you away and pluck you out of your tent" - the loss of his honor, for until now he sat among the dwellers of the tent, the Sanhedrin, among the elite, but now he was cast among the wicked; "and root you out of the land of the living" - this refers to the World to Come, the loss of his soul from the supernal realm. And "Selah" - according to the Malbim, does not mean "forever" as other commentators explain, but rather marks the conclusion of the matter: here the matter is brought to its end.

"The Righteous Shall See and Fear" - The Chesed in the Eradication of the Wicked
וְיִרְאוּ צַדִּיקִים וְיִירָאוּ, וְעָלָיו יִשְׂחָקוּ׃ - "The righteous shall see and fear, and they shall laugh at him."

The righteous will see the retribution that the Holy One, blessed be He, will execute upon you for the blood of the Kohanim that you shed for nothing, and through this - the Radak explains - they will increase even further in their fear of Hashem. "And they shall laugh at him" - they will laugh at Doeg and the members of his household. And what will this laughter consist of? The Radak says: It is the next verse, "Behold the man who did not make God his stronghold."

The holy Alshich adds a wonderful principle here. If you were to ask: Would it not be better to pray for mercy on Doeg's behalf so that he might live and repent, for "Hashem does not desire the death of the wicked, but that he turn from his way and live"? Especially since we said "Even Kel will break you down" - what kindness comes from Doeg's death? To this he answers: "The righteous shall see and fear." The Holy One, blessed be He, performed a great kindness for the righteous when He took Doeg. For had he remained alive and well in the world, even the righteous might have come to question: How can this be? A man responsible for the massacre of an entire city, the city of the Kohanim, and the murder of the Kohen Gadol Ahimelech ben Ahituv - yet he remains serene and at peace? Where is the God of justice? Thus, had Hashem spared Doeg, an even greater desecration of God's Name would have resulted. On the contrary, through his destruction, life is drawn to the righteous: the righteous will see and revere Hashem, acquiring fear of Heaven, and they will see the punishment of the evildoer, and furthermore, they will laugh at him.

There is a wonderful parable to illustrate how eradication itself can sometimes be an act of kindness: A person with gangrene in his hand must have the hand amputated. Not only that, but he pays the surgeon and even thanks him. For what? For severing his hand! Yet that is the true kindness, because cutting off the hand preserves life for the rest of the body. So too here: when Doeg is cut off, the righteous will see and fear and laugh at him, and through this the Name of Heaven is sanctified - for the death of the wicked brings about a sanctification of Hashem's Name.

Measure for Measure

The Malbim explains that the righteous will observe a punishment of measure for measure here. For Doeg had been Shaul's agent to strike the Kohanim of Hashem, Shaul having commanded him, "Turn and strike the Kohanim," and Doeg killed them. Now, the halachic principle is well known that there is no agency for sin (ein shaliach lidvar aveirah) - so who bears the guilt? The agent, Doeg. And now we see that the lad who came to report Shaul's death was Doeg, and he told David that he had killed Shaul, thinking he would gain honor for himself: "I eliminated your enemy." Yet he boasted of something untrue, for Shaul had fallen upon his own sword, and Doeg had not killed him.

And over what did Shaul die? "Agony has seized me" (achazani hashabbatz) - our Sages say that this came as retribution for the Kohanim who wore the checkered tunic (tashbatz); that very sin of slaughtering Nov, the city of the Kohanim, is what brought death upon Shaul. And now Doeg arrives, the bearer of news, and recounts this to David, and David says to him: "Your mouth has testified against you" - your own mouth caused your downfall when you said, "I have put forth my hand against the anointed of Hashem." You think you fabricated an untruth, for you did not truly lay hands on him, but you did stretch forth your hand against another anointed of Hashem - Achimelech the son of Achituv, the Kohen Gadol who was anointed, who is also called mashiach, "the anointed Kohen." For that, you are being slain now.

And when the righteous see how the Holy One, blessed be He, orchestrated matters so that Shaul, who slaughtered Nov, the city of the Kohanim, died through "agony has seized me," and that Doeg, who carried out the massacre and had not yet paid the price, came of his own accord, condemned by his own mouth when he declared, "I killed the anointed of Hashem," and was executed for it - this was exact retribution for what took place back then. And when they observe just how precise Divine Providence is, "the righteous shall see and fear" - they will stand in awe of Hashem and realize how careful one must be, for God shall bring every deed into judgment. "And they will laugh at him."

"Here is the man who made not God his stronghold"
הִנֵּה הַגֶּבֶר לֹא יָשִׂים אֱלֹהִים מָעוּזּוֹ, וַיִּבְטַח בְּרֹב עָשְׁרוֹ, יָעֹז בְּהַוָּתוֹ׃ - Here is the man who made not God his stronghold, but trusted in the abundance of his riches, and strengthened himself in his ruin.

This is the source of laughter: "Here is the man who made not God his stronghold" - his strength was not in God, but rather "he trusted in the abundance of his riches." He believed that if he established close ties with Shaul, King Shaul would enrich him. And what was his end? "He strengthened himself in his ruin" (ya'oz behavato) - the very thing through which he sought strength (oz) became his ruin (havah) and downfall. Through what did he expect to find strength? "I killed Shaul" - he expected praise and a commendation from David, yet that very claim brought about his destruction, as it provided David the justification to punish him. Thus, what he considered a source of strength not only failed to strengthen him, but became his downfall.

Radak explains: Look at the fate of the man who made not God his stronghold - he did not fear that God would punish him for his evil deeds, nor did he place his trust in Him, but rather in his wealth and prestige. In his view, "he strengthened himself in his havah" denotes wickedness and tyranny: he acted brazenly and grew powerful in his wickedness through the power of his money. The Malbim, on the other hand, interprets havato as related to ruin and fracture.

"But as for me, I am like a leafy olive tree in the house of God"
וַאֲנִי כְּזַיִת רַעֲנָן בְּבֵית אֱלֹהִים, בָּטַחְתִּי בְחֶסֶד אֱלֹהִים עוֹלָם וָעֶד׃ - But as for me, I am like a leafy olive tree in the house of God; I trust in the lovingkindness of God forever and ever.

Rashi explains: Like a fresh olive tree in children and grandchildren in the house of the Holy One, blessed be He. Radak explains that David intends here to highlight the contrast between himself and Doeg: Doeg the wicked will wither away like a falling leaf with no hope left, whereas I - not only was I saved from his slander and saved from Shaul, but I will be like a leafy olive tree. For the special quality of the olive tree is that its leaves never wither; it never sheds its leaves, and its foliage remains fresh and moist all year round.

Notice the emphasis on "in the house of God." After all, this entire episode unfolded because Doeg was "detained before Hashem" - at the very hour David came to Achimelech, Doeg was in the Mishkan, detained before Hashem, ostensibly righteous; yet we all know it was for ill intent. In contrast, David says: I am like a leafy olive tree in the house of God. Doeg was uprooted from the House of Hashem, because his entire purpose was evil rather than righteousness, and he trusted in his wealth; whereas I am planted in the House of Hashem like a fresh olive tree, because "I trust in the lovingkindness of God" - and therefore I merited this stature. Doeg, though he appeared detained in the House of Hashem, ultimately not only has no place in the House of Hashem, but possesses no share in the World to Come.

The holy Alshich elaborates in his characteristic way: If the downfall of Doeg benefits the world by strengthening the righteous and fostering the fear of Heaven, why does David speak of others rather than himself? Why does he not say that he himself would draw strength from this, and that had Doeg remained alive, he might have questioned God's ways? To this David responds: "But as for me, I am like a leafy olive tree" - I certainly will not come to question the Holy One, blessed be He. On the contrary, the olive tastes bitter, yet despite this, it remains fresh and ever-blossoming. And so our Sages teach: The righteous in this world resemble a tree planted in a place of purity whose branches extend into a place of impurity. The righteous person is like a tree planted not below, but above: his head is planted in the upper worlds, where his roots lie, while the hands and feet are like branches extending into a place of impurity - yet his roots and source of nourishment remain in a place of purity, in the higher realm, the root source of the soul.

Therefore David says: I do not fear that my vitality will wither and that I will come to question Hashem's governance when seeing Doeg survive. Why? Because I am like an olive. And what is the olive? Bitter. And through the bitterness of my afflictions - "I trust in the lovingkindness of God (Elokim)." And why did he specify "the lovingkindness of Elokim" rather than the kindness of the Tetragrammaton, which represents the attribute of Chesed? Because I also accept what the Holy One, blessed be He, metes out to me with strict judgment (Din), even the bitterness that represents the attribute of Elokim - and despite everything, I recognize it as kindness. It is all intended for my ultimate good, so that Hashem will ultimately bestow upon me an abundance of mercy and lovingkindness. Therefore, there is no fear that my faith will waver upon seeing what transpires with Doeg; I know that my existence is like an olive: it is bitter, yet ultimately sweetens, and in the end it endures with its leaves perpetually green. This is the meaning of "I trust in the lovingkindness of God (Elokim) forever and ever" - even that which appears as Elokim, strict judgment, I am confident is kindness. David knows his place and knows that for him, this raises no difficulty regarding Hashem's governance; the concern was solely for other righteous individuals who might be adversely affected were Doeg to continue living.

The Malbim explains: "And I am like a leafy olive tree" - just as an olive tree is rooted in one place, so am I rooted in the house of God, unlike Doeg who was merely detained in the house of Hashem while his roots were planted in a place of defilement. And just as the olive tree is continually green and its leaves do not wither, so do I trust in the kindness of God that it will endure forever and ever. For goodness that comes to a person on account of his deeds and merits is never guaranteed to last, because if his deeds falter, the goodness will falter as well. But the good that comes through the lovingkindness of God, beyond the strict measure of justice - in that I am secure, for God's kindness is unchanging. When goodness depends on my own conduct, a slight misstep is enough to withhold it; but when it stems from the kindness of God, that kindness is from eternity to eternity and never changes.

The Malbim explained this concept at length in Tehillim chapter 89, and we also learned it in Sefer Shemuel: the Holy One, Blessed be He, tells David that his kingdom is granted through Hashem's chesed, and therefore it will never end. Had it been contingent upon deeds, it would have been precarious, for deeds can turn for the worse; but since it is rooted in Hashem's lovingkindness, it never ceases. This is what David means: I am in the house of God, I trust in God's lovingkindness, and therefore it is "forever and ever" - this kindness will never change.

"I will thank You forever, for You have acted" - The Conclusion of the Psalm
אוֹדְךָ לְעוֹלָם כִּי עָשִׂיתָ, וַאֲקַוֶּה שִׁמְךָ כִי טוֹב נֶגֶד חֲסִידֶיךָ׃ - I will thank You forever because You have acted, and I will hope for Your Name, for it is good, in the presence of Your pious ones.

The Ibn Ezra explains "because You have acted" - because You executed my judgment upon Doeg and exacted retribution from him for what he did to me. "And I will hope for Your Name" - that You will repay him according to his deeds and avenge me; this refers to Doeg, who has no share in the World to Come. The Radak interprets: "I will hope for Your Name, for it is good, in the presence of Your pious ones" - I will place my hope in Your Name and declare before all Your pious ones just how good Your Name is, making it renowned among all Your devoted ones.

And the Malbim explains: "I will thank You forever, for You have acted" - I will perpetually give thanks for the past, because the miracles of the Holy One, Blessed be He, are continuous miracles, and thus the thanksgiving is likewise continuous, as is the gratitude for His ever-renewed favors. This corresponds to "And I am like a leafy olive tree in the house of God," for the Holy One, Blessed be He, sustains and preserves me like an olive tree that flourishes perpetually. "And I will hope for Your Name, for it is good" - to grant kindness in the future as well, "in the presence of Your pious ones," those who have prepared themselves to receive kindness and are His true servants. This corresponds to "I trust in the kindness of God forever and ever," for I am certain that Hashem will shower upon me constant goodness and lovingkindness that will never cease.

In summary:

The psalm exposes the root of Doeg's wickedness: it was neither an honest error nor an act of good faith, but a deliberate choice to love evil. From an entire narrative, he selectively extracted only the damaging details, and even his words of praise regarding David were spoken solely to arouse Shaul's jealousy - "you loved evil more than good." He loved "devouring words," speech designed to destroy and conceal, and a deceitful tongue. In response came his measure-for-measure punishment: the tearing down of his body, the forgetting of his Torah learning, his expulsion from the tent of study, and the loss of his portion in the land of the living - while his own mouth caused his downfall when he declared, "I have slain the anointed of Hashem," referring to Achimelech ben Achituv. His excision is an act of kindness for the world, for the righteous see it, revere God, and acquire fear of Heaven, just as amputating a diseased limb preserves the life of the entire body. In sharp contrast stands David: like a fresh olive tree in the house of God - bitter in his suffering yet ever fresh, deeply rooted in the House of Hashem and trusting in the unchanging kindness of God, concluding with perpetual gratitude for the past and hope for future kindness before His pious ones.