Jehovah chose Solomon, the son of Bathsheba, to succeed David as king, as a form of reparation, because David humiliated Bathsheba by using his kingly authority to force her to commit adultery. In addition, David murdered Bathsheba's husband.
The child of the adultery died to satisfy David’s crime, but Solomon, the offspring of David and Bathsheba’s legitimate marriage, was still cursed. Solomon eventually worshipped other gods and practiced witchcraft, and his descendants lost the kingship over all Israel (the whole 12 tribes).
For years II wondered why David would not punish Amnon for raping Tamar. I now understand that David knew that the character flaw by which he had used his kingly authority to force Bathsheba into adultery, had appeared in Amnon, his first born BY ANOTHER WIFE, in an even more severe form, because Anmon refused to marry Tamar after humiliating her.
Then, when it was evident that David would do nothing to punish Adonijah, Absalom, Tamar’s brother and David’s other son by another wife, executed Amnon and fled the country for fear of retaliation by David, or other of Amon’s relatives.
After that, Joab, David’s uncle and military general, convinced David to let Absalom return to Israel, but David never spoke to Absalom again, because David knew that his sin operating in another generation, was the cause of all that had happened, and he could not face Absalom.
After that, Absalom, responding to David’s rejection, stole the kingdom from David…
2 Sam 15:6
6 And on this manner did Absalom to all Israel that came to the king for judgment: so Absalom stole the hearts of the men of Israel.
…and forced David to abandon his throne to save Jerusalem from military destruction at the hand of Absalom.
2 Sam 15:14
14 And David said unto all his servants that were with him at Jerusalem, Arise, and let us flee; for we shall not else escape from Absalom: make speed to depart, lest he overtake us suddenly, and bring evil upon us, and smite the city with the edge of the sword.
David understood that he was cursed for his wrong-doing, and would not sacrifice the lives of the people because of his pride,…
2 Sam 16:11
11 And David said to Abishai, and to all his servants, Behold, my son, which came forth of my bowels, seeketh my life: how much more now may this Benjamite do it? let him alone, and let him curse; for the Lord hath bidden him.
… but put the kingdom in God’s hands.
2 Sam 15:25
25 And the king said unto Zadok, Carry back the ark of God into the city: if I shall find favour in the eyes of the Lord, he will bring me again, and shew me both it, and his habitation:
Now, David had commanded that none of his soldiers should harm Absalom (because he loved him), but it was not God’s will that a king should sit upon the throne of Israel by deceit. So, Absalom was cursed by God, who caused him to be hung from a tree.
22 And if a man have committed a sin worthy of death, and he be to be put to death, and thou hang him on a tree:
2 Sam 18:9-10
9 And Absalom met the servants of David. And Absalom rode upon a mule, and the mule went under the thick boughs of a great oak, and his head caught hold of the oak, and he was taken up between the heaven and the earth; and the mule that was under him went away.
10 And a certain man saw it, and told Joab, and said, Behold, I saw Absalom hanged in an oak.
2 Sam 18:14-15
14 Then said Joab, I may not tarry thus with thee. And he took three darts in his hand, and thrust them through the heart of Absalom, while he was yet alive in the midst of the oak.
15 And ten young men that bare Joab's armour compassed about and smote Absalom, and slew him.
…for dishonoring his father.
12 Honour thy father and thy mother: that thy days may be long upon the land which the Lord thy God giveth thee.
2 Sam 16:22
22 So they spread Absalom a tent upon the top of the house; and Absalom went in unto his father's concubines in the sight of all Israel.
David knew that Amnon's rape of Tamar was a generational curse that had transferred to his descendants because he stole Bathsheba, Uriah's wife, and murdered Uriah, her husband.
David could not punish Amnon for raping Tamar because he was guilty of the same crime.
Also, by not punishing Amnon, he made Absalom, who avenged Tamar by murdering Amnon, a murderer and an outcast.
David's oldest son, Adonijah lost his right to the throne.
The judgment for David's crimes operated throughout his entire life and continued on for at least the next two generations with regard to David's direct descendants, and the nation of Israel is divided into two nations to this very day.
David’s kingly line in the flesh was plagued with moral corruption, and came to an end when Jehovah sent the whole royal seed into captivity in Babylon.
It is interesting to note, that David did not die because of Jehovah's forgiveness, but Jehovah's forgiveness did not cancel the sowing and reaping judgment on David's life, or the life of his descendents.
The Church does not understand the spiritual principal. Yes, our sins are forgiven. This means that we are restored to a relationship with Jehovah and are eligible for eternal life. It does not mean that Jehovah's righteous sowing and reaping judgment has been canceled.
It is time for the Church of the Lord Jesus Christ to recognize that Satan is Jehovah's faithful servant, the enforcer of his righteous sowing and reaping judgment...
12 And the Lord said unto Satan, Behold, all that he hath is in thy power; only upon himself put not forth thine hand. So Satan went forth from the presence of the Lord.
Every sin shall have its just recompense In the new as well as the Old Testament
7 Be not deceived; God is not mocked: for whatsoever a man soweth, that shall he also reap.
We can choose a lesser or a greater judgment by confessing our sins and asking the Lord to remove our character flaws.
2 Sam 24:13
13 So Gad came to David, and told him, and said unto him, Shall seven years of famine come unto thee in thy land? or wilt thou flee three months before thine enemies, while they pursue thee? or that there be three days' pestilence in thy land? now advise, and see what answer I shall return to him that sent me.
Wherever possible, reconciliation and restitution should be made to all injured parties.
If the injured party is dead, restitution should be made to their descendents or to the ministry of the priest that teaches you spiritual doctrine and principles.