Shared ground
These verses present a turn in the story after the death of David and Bathsheba’s first child. The text explicitly says David comforted Bathsheba (now identified as his wife), had sexual relations with her, and she bore a son (2 Sam 12:24). David publicly gives the child a name: Solomon.
The narrator then adds an explicit theological claim: “Yahweh loved him” (2 Sam 12:24). That love is not left as a private feeling; it is conveyed through a prophetic word. The text says Yahweh sent a message through Nathan, and the boy is also called Jedidiah “for Yahweh’s sake” (2 Sam 12:25). Two names are held together in the storyline: a royal household name (Solomon) and a name tied to Yahweh’s message (Jedidiah). 2 Samuel 12:24
Where interpretation differs
Two main questions get discussed.
First: how the two names function in real life. Some read this as Solomon being the everyday, public name, while Jedidiah is a God-given name used to signal divine favor (possibly used mainly in prophetic or theological contexts). Others think both names may have had real use, with one becoming dominant over time.
Second: who is the “he” in “he named him Jedidiah.” Some take it as Nathan doing the naming as part of delivering Yahweh’s message. Others take it as David naming the child Jedidiah in response to Nathan’s message. Either way, the text’s main point remains that the name Jedidiah is tied to Yahweh’s message and purpose.
Why the disagreement exists
The wording moves quickly from David naming Solomon to Yahweh’s message through Nathan and then “he named him Jedidiah.” Because multiple male figures are in view (David and Nathan), the pronoun can be read either way. Also, the story does not later call the king “Jedidiah,” which leaves readers to infer how the second name functioned.
What this passage clearly contributes
Explicitly, it shows (1) marital restoration and a new birth after judgment, (2) the child’s public naming by David (Solomon), (3) Yahweh’s favorable regard toward the child, and (4) prophetic involvement in marking that favor through the name Jedidiah. Theologically by inference, it contributes to the larger narrative claim that Yahweh’s purposes for David’s line continue even after serious sin and its consequences, and that Yahweh’s stance toward the new child is presented as gracious and intentional rather than accidental. 2 Samuel 12:25