Rashi on the Former Prophets
1 Samuel 24
The rocky land of the wild goats. The rocks of the wild goats.
To relieve himself. To defecate.
Afterwards … etc.
He said to his men, "[Adonoy] forbid." These two verses are not written in sequence; but since he began to speak regarding the cutting of the robe, he finished everything concerning it, and he said that he even regretted cutting the robe. Afterwards, he returns to the first subject, and says that regarding his men's comments, "Behold, concerning this day, etc." He replied to them, 'May Adonoy forbid that, etc.'
Dovid pacified. He separated and held them off with these words.
Why do you listen. Why do you accept Do'eg's slander concerning me?
Someone said to kill you, but I had mercy on you. There are two words missing here, "and one who spoke [הָאוֹמֵר] said that I should kill you, but my soul [נַפְשִׁי] had pity on you, similar to "and King Dovid longed to go forth to Avshalom," [meaning,] and Dovid's soul [נֶפֶשׁ] longed.
My father, indeed see. Meaning, pay attention to the matter, and also see the evidence, for the corner of your robe is in my hand, and I could have killed you.
As the ancient proverb says. The proverb of the Ancient One of the world [referring to] the Torah, which is the proverb of the Holy One, Blessed is He.
From the wicked comes wickedness. The Holy One, Blessed is He, destines the wicked to fall into the hand of the wicked like himself. And where did the Torah say this, "And God destined it into his hand," as it is stated in Maseches Makos.
I know that you will surely reign. For I see that the Holy One, Blessed is He, saves you from my hand. The Midrash Aggadah states, that Shmuel gave him this sign, that the one who tears his robe will reign after him.
You arrive at the cited line; the whole work is yours to read around it. The text is set from the cited public-domain edition.