Then David comforted Bathsheba his wife, and went in to her and lay with her. So she bore a son, and he called his name Solomon. Now the LORD loved him,
2 Samuel 12:24
Surrounding context
12:23 But now he is dead; why should I fast? Can I bring him back again? I shall go to him, but he shall not return to me."
12:24 Then David comforted Bathsheba his wife, and went in to her and lay with her. So she bore a son, and he called his name Solomon. Now the LORD loved him,
12:25 and He sent word by the hand of Nathan the prophet: So he called his name Jedidiah, because of the LORD.