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.