2 Samuel 12:24-31 ESV
Then David comforted his wife, Bathsheba, and went in to her and lay with her, and she bore a son, and he called his name Solomon. And the LORD loved him and sent a message by Nathan the prophet. So he called his name Jedidiah, because of the LORD.
Now Joab fought against Rabbah of the Ammonites and took the royal city. And Joab sent messengers to David and said, “I have fought against Rabbah; moreover, I have taken the city of waters. Now then gather the rest of the people together and encamp against the city and take it, lest I take the city and it be called by my name.” So David gathered all the people together and went to Rabbah and fought against it and took it. And he took the crown of their king from his head. The weight of it was a talent of gold, and in it was a precious stone, and it was placed on David’s head. And he brought out the spoil of the city, a very great amount. And he brought out the people who were in it and set them to labor with saws and iron picks and iron axes and made them toil at the brick kilns. And thus he did to all the cities of the Ammonites. Then David and all the people returned to Jerusalem.
ESV: English Standard Version 2016