Rashi on the Former Prophets
2 Samuel 12
A traveler came. [Noson] compared the evil inclination at first to a sojourner that is [quickly] going on his way. Afterwords he is compared to a guest that has become a resident and afterwords he is compared to a man who is the owner of the house.
Is worthy of death. Someone who steals from a poor person is tantamount to taking his life as it is said, "He has taken it's owner's life."
Pay fourfold. This is what [eventually] happened, he was punished with [problems concerning] four children the child and Amnon Tomor and Avsholom.
Your master's woman. Michal, the daughter of Shaul.
I will add on. I would add on for you.
Because you have angered the enemies of Adonoy. This is a euphimism a way [to be] respectable to on High. Yonasan translated, Because you have opened up you have opened the mouth of [those] who hate the people of God.
[He became sick.] [This word] denotes sickness.
And came to repose and lied on the ground. And came [back] to the house and reposed at night lying on the ground.
And he did not eat. [A word] denoting eating like [we find], "I will eat from her hand."
Because of God. That loved him [Shlomo].
The royal city. There were two enforced walls [of cities] in it, an outside one and an inside one. The outside city was [called] the royal city, and the inside [city] was a fortress and stronghold.
The crown of Malkom. The abomination [idol] of the people of Ammon's name was Malkom. Denoting [the word] Moleich.
It was [hung over] Dovid's head. Itai the Gitite annulled it.
Saw-like utensils, iron threshing utensils and iron axes. They are types of tortures.
Saw-like utensils. A knife serrated with many [sharp] edges bent towards each other.
Threshing utensils. This is a hacked saw full of cuts like "many sharp edges" that is called laime (O.F.).
The streets. In the mud of the streets and so Yonason [also] translated: "He dragged them in the streets."
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.