Thank you for contacting BibleAsk.
“But the thing that David had done displeased the Lord” (2 Samuel 11:27).
After David’s sin with Bathsheba, God did not have David to cut the marital relationship with her since her husband was dead and she was released from that law “For the woman who has a husband is bound by the law to her husband as long as he lives. But if the husband dies, she is released from the law of her husband. So then if, while her husband lives, she marries another man, she will be called an adulteress; but if her husband dies, she is free from that law, so that she is no adulteress, though she has married another man” (Romans 7:2-3, NKJV).
But God punished David and brought upon him the evil consequences of his sin to teach us the pure character of God’s Law. Three direct consequences were inflicted upon David:
First: Nathan said the sword would never depart from David’s house (2 Samuel 12:10). This was fulfilled in the successive violent deaths of at least three of his sons—Amnon (2 Samuel 13:29), Absalom (2 Samuel 18:14), and Adonijah (1 Kings 2:25).
Second: Nathan also prophesied to David that his own wives would be humiliated before all Israel (2 Samuel 12:11). This was fulfilled when Absalom “lay with his father’s concubines in the sight of all Israel” (2 Samuel 16:22).
Third: Nathan pronounced the fatal end of the son conceived by David’s sin with Bathsheba (2 Samuel 12:14). This was fulfilled seven days after Nathan’s judgment sentence (2 Samuel 12:18).
The Lord in His mercy allows men to see that the results of sin are not increased prosperity and happiness, but misery, woe, and death. His protecting hand was withdrawn from David, and the king was permitted to taste the bitter fruits of his sin. And David realized that the pathway to true happiness could not be found in disobedience.
In His service,
The BibleAsk Team