As the time of King David's death approached, he gave this charge to his son Solomon:
"I am going where everyone on earth must someday go. Take courage and be a man.
Observe the requirements of the LORD your God and follow all his ways. Keep each of the laws, commands, regulations, and stipulations written in the law of Moses so that you will be successful in all you do and wherever you go.
If you do this, then the LORD will keep the promise he made to me: 'If your descendants live as they should and follow me faithfully with all their heart and soul, one of them will always sit on the throne of Israel.'"
"And there is something else. You know that Joab son of Zeruiah murdered my two army commanders, Abner son of Ner and Amasa son of Jether. He pretended that it was an act of war, but it was done in a time of peace, staining his belt and sandals with the blood of war.
References for 1 Kings 2:5
Do with him what you think best, but don't let him die in peace."
"Be kind to the sons of Barzillai of Gilead. Make them permanent guests of the king, for they took care of me when I fled from your brother Absalom."
"And remember Shimei son of Gera, the man from Bahurim in Benjamin. He cursed me with a terrible curse as I was fleeing to Mahanaim. When he came down to meet me at the Jordan River, I swore by the LORD that I would not kill him.
But that oath does not make him innocent. You are a wise man, and you will know how to arrange a bloody death for him."
Then David died and was buried in the City of David.
He had reigned over Israel for forty years, seven of them in Hebron and thirty-three in Jerusalem.
Solomon succeeded him as king, replacing his father, David, and he was firmly established on the throne.
One day Adonijah, whose mother was Haggith, came to see Bathsheba, Solomon's mother. "Have you come to make trouble?" she asked him. "No," he said, "I come in peace.
In fact, I have a favor to ask of you." "What is it?" she asked.
He replied, "As you know, the kingdom was mine; everyone expected me to be the next king. But the tables were turned, and everything went to my brother instead; for that is the way the LORD wanted it.
So now I have just one favor to ask of you. Please don't turn me down." "What is it?" she asked.
He replied, "Speak to King Solomon on my behalf, for I know he will do anything you request. Ask him to give me Abishag, the girl from Shunem, as my wife."
"All right," Bathsheba replied. "I will speak to the king for you."