Rashi on the Former Prophets
2 Samuel 11
At the time [of year] when kings go forth. There is a time of year when it is the practice that troops go forth, when the land is full of growth and the horses find produce in the field to eat.
From her uncleanliness. From her menstrual impurity.
Send me Urioh. [Dovid] intended that he [Urioh] lie with his wife in order that it be thought that from him [Urioh] she was pregnant.
The king's meal. [Yonasan translates:] the king's meal.
And he will be struck and killed. In order for [Batsheva] to be divorced [from Urioh] retroactively. the result would be that [Dovid] did not cohabit with a married woman. Because all [soldiers] who went out to war wrote a conditional divorce document for their wife should they die in battle.
The son of Yerubeshes. This is Gidon who fought with Boshes, which is the Baal.
Intensify your war [against] the city and destroy it. The words of the message [end] at this point.
You should encourage him [Yoav]. Dovid [then] said to the messenger, "Encourage Yoav with consoling words so that his heart should not weaken.
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.