Matthew Henry on 2 Samuel 12:26–end
We have here an account of the conquest of Rabbah, and other cities of the Ammonites. Though this comes in here after the birth of David's child, yet it is most probable that it was effected a good while before, and soon after the death of Uriah, perhaps during the days of Bath-sheba's mourning for him. Observe, 1. That God was very gracious in giving David this great success against his enemies, notwithstanding the sin he had been guilty of just at that time when he was engaged in this war, and the wicked use he had made of the sword of the children of Ammon in the murder of Uriah. Justly might he have made that sword, thenceforward, a plague to David and his kingdom; yet he breaks it, and…
Read the whole note in the consoleJamieson-Fausset-Brown on 2 Samuel 12:28
encamp against the city, and take it--It has always been characteristic of Oriental despots to monopolize military honors; and as the ancient world knew nothing of the modern refinement of kings gaining victories by their generals, so Joab sent for David to command the final assault in person. A large force was levied for the purpose. David without much difficulty captured the royal city and obtained possession of its immense wealth.
lest I take the city, and it be called after my name--The circumstance of a city receiving a new name after some great person, as Alexandria, Constantinople, Hyderabad, is of frequent occurrence in the ancient and modern history of the East.
Adam Clarke on 2 Samuel 12:27
And have taken the city of waters - The city where the tank or reservoir was that supplied the city and suburbs with water. Some think that the original, לכדתי את עיר המים lachadti eth ir hammayim, should be translated I have intercepted, or cut off, the waters of the city: and Houbigant translates the place, et aquas ab urbe jam derivavi; "And I have already drawn off the waters from the city." This perfectly agrees with the account in Josephus, who says των τε ὑδατων αυτους αποτεμνομενος, having cut off their waters, Antiq., lib. vii., cap. 7. This was the reason why David should come speedily, as the citadel, deprived of water, could not long hold out.