3and keep your obligation to the LORD your God to walk in his ways and to keep his statutes, commands, ordinances, and decrees. This is written in the law of Moses, so that you will have success in everything you do and wherever you turn,
4and so that the LORD will fulfill his promise that he made to me: 'If your sons guard their way to walk faithfully before me with all their heart and all their soul, you will never fail to have a man on the throne of Israel.'
5"You also know what Joab son of Zeruiah did to me and what he did to the two commanders of Israel's army, Abner son of Ner and Amasa son of Jether. He murdered them in a time of peace to avenge blood shed in war. He spilled that blood on his own waistband and on the sandals of his feet.
7"Show kindness to the sons of Barzillai the Gileadite and let them be among those who eat at your table because they supported me when I fled from your brother Absalom.
8"Keep an eye on Shimei son of Gera, the Benjaminite from Bahurim who is with you. He uttered malicious curses against me the day I went to Mahanaim. But he came down to meet me at the Jordan River, and I swore to him by the LORD: 'I will never kill you with the sword.'
15"You know the kingship was mine," he said. "All Israel expected me to be king, but then the kingship was turned over to my brother, for the LORD gave it to him.
19So Bathsheba went to King Solomon to speak to him about Adonijah. The king stood up to greet her, bowed to her, sat down on his throne, and had a throne placed for the king's mother. So she sat down at his right hand.
20Then she said, "I have just one small request of you. Don't turn me down." "Go ahead and ask, mother," the king replied, "for I won't turn you down."
22King Solomon answered his mother, "Why are you requesting Abishag the Shunammite for Adonijah? Since he is my elder brother, you might as well ask the kingship for him, for the priest Abiathar, and for Joab son of Zeruiah."
24And now, as the LORD lives--the one who established me, seated me on the throne of my father David, and made me a dynasty as he promised--I swear Adonijah will be put to death today!"
26The king said to the priest Abiathar, "Go to your fields in Anathoth. Even though you deserve to die, I will not put you to death today, since you carried the ark of the Lord GOD in the presence of my father David and you suffered through all that my father suffered."
29It was reported to King Solomon: "Joab has fled to the LORD's tabernacle and is now beside the altar." Then Solomon sent Benaiah son of Jehoiada and told him, "Go and strike him down!"
30So Benaiah went to the tabernacle and said to Joab, "This is what the king says: 'Come out!'" But Joab said, "No, for I will die here." So Benaiah took a message back to the king, "This is what Joab said, and this is how he answered me."
31The king said to him, "Do just as he says. Strike him down and bury him in order to remove from me and from my father's family the blood that Joab shed without just cause.
32The LORD will bring back his own blood on his head because he struck down two men more righteous and better than he, without my father David's knowledge. With his sword, Joab murdered Abner son of Ner, commander of Israel's army, and Amasa son of Jether, commander of Judah's army.
33The responsibility for their deaths will come back to Joab and to his descendants forever, but for David, his descendants, his dynasty, and his throne, there will be peace from the LORD forever."
39But then, at the end of three years, two of Shimei's slaves ran away to Achish son of Maacah, king of Gath. Shimei was informed, "Look, your slaves are in Gath."
42So the king summoned Shimei and said to him, "Didn't I make you swear by the LORD and warn you, saying, 'On the day you leave and go anywhere else, know for sure that you will certainly die'? And you said to me, 'The sentence is fair; I will obey.'
46Then the king commanded Benaiah son of Jehoiada, and he went out and struck Shimei down, and he died. So the kingdom was established in Solomon's hand.