In verses 24 and 25 we have a word regarding the birth of Solomon.
David comforted Bath-sheba his wife. She bore him a son, and he called his name Solomon, which means "peaceful" (v. 24a).
Jehovah loved Solomon, sent word through Nathan the prophet, and called his name Jedidiah for Jehovah's sake (vv. 24b-25). The name Jedidiah means "beloved of Jehovah."
Verses 26 through 31 speak of David's conquest over the children of Ammon.
This conquest of the children of Ammon was through David's captain Joab (vv. 26-29).
David robbed the king of Ammon of his crown, the weight of which was a talent of gold. David also brought forth the spoil of the city, a very great amount (v. 30).
In dealing with the cities of the children of Ammon, David set the people under saws, iron cutting tools, and iron axes and made them pass through the brick kilns (v. 31).