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 and sent word through Nathan the prophet that they should name him Jedidiah (which means “beloved of the LORD”), as the LORD had commanded.
(2 Samuel 12:24-25 NLT)
The name Jedidah means “loved by the Lord.” I believe that the renaming of Solomon was God’s way of reaffirming His love towards not only Solomon, but sinful David and Bathsheba as well. Even though God had already assured David of being forgiven for his sins of adultery and murder, I believe that David and Bathsheba still needed a reminder that God still loved them in spite of their terrible sin, so God renamed their newborn son Jedidiah. The Apostle Paul was convinced that nothing would be able to separate us from the love of God (Romans 8:38-39). While God’s love isn’t an excuse to keep on sinning, it motivates us to get up when we fall.
God loves us in spite of our sins.