2 Samuel 12:24-25

Solomon’s Birth

24Then David comforted his wife, Bathsheba, and went in to her and lay with her, and ashe bore a son, and he called his name bSolomon. And the Lord loved him 25and sent a message by Nathan the prophet. So he called his name Jedidiah,
 Jedidiah means beloved of the Lord
because of the Lord.

Matthew 1:6

6and dJesse the father of David the king.

And eDavid was the father of Solomon by fthe wife of Uriah,
Copyright information for ESV