2 Samuel 12:27

12:27 Joab then sent messengers to David, saying, “I have fought against Rabbah and have captured the water supply of the city.

2 Samuel 23:15

23:15 David was thirsty and said, “How I wish someone would give me some water to drink from the cistern in Bethlehem near the gate!”

sn The expression translated the water supply of the city (Heb “the city of the waters”) apparently refers to that part of the fortified city that guarded the water supply of the entire city. Joab had already captured this part of the city, but he now defers to King David for the capture of the rest of the city. In this way the king will receive the credit for this achievement.