Now the days of David drew near that he should die; and he commanded Solomon his son, saying,
"I am going the way of all the earth. You be strong therefore, and show yourself a man;
and keep the instruction of the LORD your God, to walk in his ways, to keep his statutes, his commandments, his ordinances, and his testimonies, according to that which is written in the law of Moses, that you may prosper in all that you do, and wherever you turn yourself.
That the LORD may establish his word which he spoke concerning me, saying, 'If your children take heed to their way, to walk before me in truth with all their heart and with all their soul, there shall not fail you,' he said, 'a man on the throne of Israel.'
"Moreover you know also what Joab the son of Zeruiah did to me, even what he did to the two captains of the armies of Israel, to Abner the son of Ner, and to Amasa the son of Jether, whom he killed, and shed the blood of war in peace, and put the blood of war on his sash that was about his waist, and in his shoes that were on his feet.
Do therefore according to your wisdom, and don't let his gray head go down to Sheol in peace.
But show kindness to the sons of Barzillai the Gileadite, and let them be of those who eat at your table; for so they came to me when I fled from Absalom your brother.
"Behold, there is with you Shimei the son of Gera, the Benjamite, of Bahurim, who cursed me with a grievous curse in the day when I went to Mahanaim; but he came down to meet me at the Jordan, and I swore to him by the LORD, saying, 'I will not put you to death with the sword.'
Now therefore don't hold him guiltless, for you are a wise man; and you will know what you ought to do to him, and you shall bring his gray head down to Sheol with blood."
David slept with his fathers, and was buried in the city of David.
The days that David reigned over Israel were forty years; seven years reigned he in Hebron, and thirty-three years reigned he in Jerusalem.
Solomon sat on the throne of David his father; and his kingdom was firmly established.
Then Adonijah the son of Haggith came to Bathsheba the mother of Solomon. She said, "Do you come peaceably?" He said, "Peaceably.
He said moreover, I have something to tell you." She said, "Say on."
He said, "You know that the kingdom was mine, and that all Israel set their faces on me, that I should reign. However the kingdom is turned around, and has become my brother's; for it was his from the LORD.
Now I ask one petition of you. Don't deny me." She said to him, "Say on."
He said, "Please speak to Solomon the king (for he will not tell you 'no'), that he give me Abishag the Shunammite as wife."
Bathsheba said, "Alright. I will speak for you to the king."
Bathsheba therefore went to king Solomon, to speak to him for Adonijah. The king rose up to meet her, and bowed himself to her, and sat down on his throne, and caused a throne to be set for the king's mother; and she sat on his right hand.
Then she said, "I ask one small petition of you; don't deny me." The king said to her, "Ask on, my mother; for I will not deny you."
She said, "Let Abishag the Shunammite be given to Adonijah your brother as wife."
King Solomon answered his mother, "Why do you ask Abishag the Shunammite for Adonijah? Ask for him the kingdom also; for he is my elder brother; even for him, and for Abiathar the priest, and for Joab the son of Zeruiah."
Then king Solomon swore by the LORD, saying, "God do so to me, and more also, if Adonijah has not spoken this word against his own life.
Now therefore as the LORD lives, who has established me, and set me on the throne of David my father, and who has made me a house, as he promised, surely Adonijah shall be put to death this day."
King Solomon sent by Benaiah the son of Jehoiada; and he fell on him, so that he died.
To Abiathar the priest the king said, "Go to Anathoth, to your own fields; for you are worthy of death. But I will not at this time put you to death, because you bore the ark of the Lord the LORD before David my father, and because you were afflicted in all in which my father was afflicted."
So Solomon thrust out Abiathar from being priest to the LORD, that he might fulfill the word of the LORD, which he spoke concerning the house of Eli in Shiloh.
The news came to Joab; for Joab had turned after Adonijah, though he didn't turn after Absalom. Joab fled to the Tent of the LORD, and caught hold on the horns of the altar.
It was told king Solomon, "Joab has fled to the Tent of the LORD, and behold, he is by the altar." Then Solomon sent Benaiah the son of Jehoiada, saying, "Go, fall on him."
Benaiah came to the Tent of the LORD, and said to him, "Thus says the king, 'Come forth!'" He said, "No; but I will die here." Benaiah brought the king word again, saying, "Thus said Joab, and thus he answered me."
The king said to him, "Do as he has said, and fall on him, and bury him; that you may take away the blood, which Joab shed without cause, from me and from my father's house.
the LORD will return his blood on his own head, because he fell on two men more righteous and better than he, and killed them with the sword, and my father David didn't know it: Abner the son of Ner, captain of the army of Israel, and Amasa the son of Jether, captain of the army of Judah.
So shall their blood return on the head of Joab, and on the head of his seed forever. But to David, and to his seed, and to his house, and to his throne, there shall be peace forever from the LORD."
Then Benaiah the son of Jehoiada went up, and fell on him, and killed him; and he was buried in his own house in the wilderness.
The king put Benaiah the son of Jehoiada in his place over the army; and Zadok the priest did the king put in the place of Abiathar.
The king sent and called for Shimei, and said to him, "Build yourself a house in Jerusalem, and dwell there, and don't go out from there anywhere.
For on the day you go out, and pass over the brook Kidron, know for certain that you shall surely die: your blood shall be on your own head."
Shimei said to the king, "The saying is good. As my lord the king has said, so will your servant do." Shimei lived in Jerusalem many days.
It happened at the end of three years, that two of the servants of Shimei ran away to Achish, son of Maacah, king of Gath. They told Shimei, saying, "Behold, your servants are in Gath."
Shimei arose, and saddled his donkey, and went to Gath to Achish, to seek his servants; and Shimei went, and brought his servants from Gath.
It was told Solomon that Shimei had gone from Jerusalem to Gath, and was come again.
The king sent and called for Shimei, and said to him, "Didn't I adjure you by the LORD, and warn you, saying, 'Know for certain, that on the day you go out, and walk abroad any where, you shall surely die?' You said to me, 'The saying that I have heard is good.'
Why then have you not kept the oath of the LORD, and the commandment that I have instructed you with?"
The king said moreover to Shimei, "You know all the wickedness which your heart is privy to, that you did to David my father. Therefore the LORD shall return your wickedness on your own head.
But king Solomon shall be blessed, and the throne of David shall be established before the LORD forever."
So the king commanded Benaiah the son of Jehoiada; and he went out, and fell on him, so that he died. The kingdom was established in the hand of Solomon.