Then David rose from the ground, washed, anointed himself, and changed his clothes. He went into the house of the Lord, and worshiped; he then went to his own house; and when he asked, they set food before him and he ate.
Then his servants said to him, "What is this thing that you have done? You fasted and wept for the child while it was alive; but when the child died, you rose and ate food."
He said, "While the child was still alive, I fasted and wept; for I said, "Who knows? The Lord may be gracious to me, and the child may live.'
But now he is dead; why should I fast? Can I bring him back again? I shall go to him, but he will not return to me."
Then David consoled his wife Bathsheba, and went to her, and lay with her; and she bore a son, and he named him Solomon. The Lord loved him,
and sent a message by the prophet Nathan; so he named him Jedidiah, because of the Lord.
References for 2 Samuel 12:25
Now Joab fought against Rabbah of the Ammonites, and took the royal city.
Joab sent messengers to David, and said, "I have fought against Rabbah; moreover, I have taken the water city.
Now, then, gather the rest of the people together, and encamp against the city, and take it; or I myself will take the city, and it will be called by my name."
So David gathered all the people together and went to Rabbah, and fought against it and took it.
He took the crown of Milcom 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. He also brought forth the spoil of the city, a very great amount.
References for 2 Samuel 12:30