22 David replied, “I fasted and wept while the child was alive, for I said, ‘Perhaps the lord will be gracious to me and let the child live.’
23 But why should I fast when he is dead? Can I bring him back again? I will go to him one day, but he cannot return to me.”
24 Then David comforted Bathsheba, his wife, and slept with her. She became pregnant and gave birth to a son, and David named him Solomon. The lord loved the child
25 and sent word through Nathan the prophet that they should name him Jedidiah (which means “beloved of the lord”), as the lord had commanded.
26 Meanwhile, Joab was fighting against Rabbah, the capital of Ammon, and he captured the royal fortifications.
27 Joab sent messengers to tell David, “I have fought against Rabbah and captured its water supply.
28 Now bring the rest of the army and capture the city. Otherwise, I will capture it and get credit for the victory.”