24 Then David comforted his wife, Bathsheba, and went in to her and lay with her, and she bore a son, and he called his name Solomon. And the Lord loved him 25 and sent a message by Nathan the prophet. So he called his name Jedidiah, because of the Lord.
26 Now Joab fought against Rabbah of the Ammonites and took the royal city. 27 And Joab sent messengers to David and said, “I have fought against Rabbah; moreover, I have taken the city of waters. 28 Now then gather the rest of the people together and encamp against the city and take it, lest I take the city and it be called by my name.” 29 So David gathered all the people together and went to Rabbah and fought against it and took it. 30 And he took the crown of their king 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. And he brought out the spoil of the city, a very great amount. 31 And he brought out the people who were in it and set them to labor with saws and iron picks and iron axes and made them toil at the brick kilns. And thus he did to all the cities of the Ammonites. Then David and all the people returned to Jerusalem. – 2 Samuel 12:24-31 ESV
Because of his sin, David lost a son. Because of his repentance, David was given a son, and he named him Solomon (Shĕlomoh). The name David gave this second son born to him and Bathsheba is a derivative of the Hebrew word for peace – shalowm. There is little doubt that, after having received his punishment from God, David was grateful to have been restored back to a right relationship with God.
Psalm 51, written by David as a result of his sin with Bathsheba and the forgiveness he received from God, reflects his heart at this most difficult period of his life. First of all, he knew his sin.
Behold, I was brought forth in iniquity,
and in sin did my mother conceive me.
Behold, you delight in truth in the inward being,
and you teach me wisdom in the secret heart. – Psalm 51:5-6 ESV
But he also desired to be made right with God. He wanted to enjoy God’s presence and pleasure again.
Create in me a clean heart, O God,
and renew a right spirit within me.
Cast me not away from your presence,
and take not your Holy Spirit from me.
Restore to me the joy of your salvation,
and uphold me with a willing spirit. – Psalm 51:10-12 ESV
And David pledged that if God would restore him fully, he would praise Him.
Deliver me from bloodguiltiness, O God,
O God of my salvation,
and my tongue will sing aloud of your righteousness.
O Lord, open my lips,
and my mouth will declare your praise. – Psalm 51:14-15 ESV
So, with the birth of Solomon, David’s sense of restored peace with God most likely explains the name he gave to his newborn son. But he also gave his son another name, Jedidiah, which means “loved by the Lord.” Despite his earlier sins, David received a word from Nathan the prophet that assured him of God’s love for him. The name was meant to be a message from God intended to remind David that God’s love outweighed the guilt of his sin. While he had been punished for his sins, he had also been forgiven and fully restored.
David had been broken by God. He had been disciplined for his sins and brought to a point of repentance, which resulted in his restoration, and he had learned a valuable lesson that would live with him for the rest of his life.
The sacrifices of God are a broken spirit;
a broken and contrite heart, O God, you will not despise. – Psalm 51:17 ESV
David had experienced the truth found in 1 John 1:9: “If we confess our sins, he is faithful and just to forgive us our sins and to cleanse us from all unrighteousness.”
In another one of his psalms, David penned these encouraging words:
Finally, I confessed all my sins to you
and stopped trying to hide my guilt.
I said to myself, “I will confess my rebellion to the Lord.”
And you forgave me! All my guilt is gone. – Psalm 32:5 NLT
The apostle Paul reminds us: “Don’t you see how wonderfully kind, tolerant, and patient God is with you? Does this mean nothing to you? Can’t you see that his kindness is intended to turn you from your sin?” (Romans 2:4 NLT). He wrote something similar to the believers in Corinth: “For the kind of sorrow God wants us to experience leads us away from sin and results in salvation. There’s no regret for that kind of sorrow. But worldly sorrow, which lacks repentance, results in spiritual death” (2 Corinthians 7:10 NLT).
God loved David so much that He was not willing to allow David to remain in his sin. He disciplined him because He loved him. He sent Nathan the prophet to confront him. He brought David to a point of brokenness because He loved him. When David confessed, God restored him. Despite all he had done, David once again enjoyed peace with God and knew that he was loved by God.
David was given a second chance. He was provided with a second son, whose name was Solomon. It should not escape our attention that the very same woman whom David wed through sinful and deceptive means was used by God to provide David with another son and the eventual heir to his throne. This son would grow up to enjoy the pleasure of God and know what it means to have the hand of God on his life.
But Bathsheba’s role in David’s life would extend well beyond the birth of Solomon. In his gospel account, Matthew records the lineage of Jesus and, in it, he includes a mention of Bathsheba.
…and Salmon the father of Boaz by Rahab, and Boaz the father of Obed by Ruth, and Obed the father of Jesse, and Jesse the father of David the king.
And David was the father of Solomon by the wife of Uriah, and Solomon the father of Rehoboam, and Rehoboam the father of Abijah… – Matthew 1:5-7 ESV
There are three women mentioned in this outline of Jesus’ family tree. Rahab, who had been a prostitute; Ruth, a pagan Moabitess; and Bathsheba, the adulterous wife of Uriah. Their inclusion in the list is intentional. God used these seemingly unfit and unqualified women to bring about the birth of His Son. Despite her immoral background, Rahab expressed belief in the God of Israel and assisted the spies who had come to examine the defenses of her hometown of Jericho. As a result, she and her family were spared when the city was destroyed. She later went on to marry an Israelite man named Salmon to whom she bore a son named Boaz.
Boaz would go on to marry a woman named Ruth who was a Moabitess. She was a non-Hebrew who married the son of an Israelite family. In a series of unfortunate events, Ruth lost her husband, father-in-law, and brother-in-law. Their deaths left Ruth and her mother-in-law, Naomi alone and hopeless, living in the land of Moab. When Naomi shared her plans to return to the land of Israel, she encouraged her two widowed daughters-in-law to remain behind and remarry. But Ruth expressed her intention to stay by Naomi’s side and remain a faithful follower of Yahweh.
“Wherever you go, I will go; wherever you live, I will live. Your people will be my people, and your God will be my God. Wherever you die, I will die, and there I will be buried. May the Lord punish me severely if I allow anything but death to separate us!” – Ruth 1:16-17 NLT
Ruth would eventually meet and marry an Israelite named Boaz, to whom she would bear a son named Obed. He would become the father of Jesse and Jesse would eventually become the father of David. It would be through David and “the wife of Uriah” that God would provide a son named Solomon. As Matthew continued to trace the line forward, he revealed that through Solomon’s descendants would come the future King of Israel, Jesus Christ, the Son of God.
…and Jacob the father of Joseph the husband of Mary, of whom Jesus was born, who is called Christ. – Matthew 1:16 ESV
What a timely reminder that our sins cannot derail God’s plans. His providence can overcome our proclivity to sin. Even our greatest periods of unfaithfulness are always met by His faithfulness.
The rest of the chapter reflects this fact. Despite all David had done, God continued to bless David by giving him victories over his enemies. But David had learned a valuable lesson from his most recent experience. The closing verses of chapter 12 reveal that Joab was once again leading the armies of Israel in battle against their enemies, but this time David took part. When Joab had successfully besieged the capital city of the Ammonites, he sent word to David encouraging him to lead the troops in their final assault of the city. This time, David left the comfort of Jerusalem and did what kings were supposed to do, lead his troops into battle.
Joab had effectively captured the Ammonite city of Rabbah but called for David to bring the rest of the troops so that he might receive the glory of taking the city. He jokingly chided David, saying, “I have fought against Rabbah and captured its water supply. Now bring the rest of the army and capture the city. Otherwise, I will capture it and get credit for the victory” (2 Samuel 12:27-28 NLT).
David took the city and captured the king, his crown, and all the people. The text tells us, “thus he did to all the cities of the Ammonites” (2 Samuel 12:31 ESV). David had returned to his primary role as the warrior-king of Israel. He went back to doing what God had chosen him to do, and God gave him success.
David sinned and God brought discipline. As a result, David repented and God restored him. This amazing reality didn’t escape David. He would later write a psalm that reflects his understanding of and appreciation for God’s love and forgiveness:
The Lord is merciful and gracious,
slow to anger and abounding in steadfast love.
He will not always chide,
nor will he keep his anger forever.
He does not deal with us according to our sins,
nor repay us according to our iniquities.
For as high as the heavens are above the earth,
so great is his steadfast love toward those who fear him;
as far as the east is from the west,
so far does he remove our transgressions from us. – Psalm 103:8-12 ESV
Nothing can separate us from the love of God. Even our greatest sins, when confessed and repented of, bring God’s forgiveness and complete restoration. Rabbah fell. The Ammonites were defeated. The crown was captured. The kingdom expanded. The plan of God continued undeterred. And David learned the invaluable lesson of resting in the love and faithfulness of God.
English Standard Version (ESV) The Holy Bible, English Standard Version. ESV® Permanent Text Edition® (2016). Copyright © 2001 by Crossway Bibles, a publishing ministry of Good News Publishers.
New Living Translation (NLT) Holy Bible, New Living Translation, copyright © 1996, 2004, 2015 by Tyndale House Foundation. Used by permission of Tyndale House Publishers Inc., Carol Stream, Illinois 60188. All rights reserved.