1 Kings 2:22

2:22 King Solomon answered his mother, “Why just request Abishag the Shunammite for him? Since he is my older brother, you should also request the kingdom for him, for Abiathar the priest, and for Joab son of Zeruiah!”

1 Kings 2:26-35

2:26 The king then told Abiathar the priest, “Go back to your property in Anathoth. You deserve to die, but today I will not kill you because you did carry the ark of the sovereign Lord before my father David and you suffered with my father through all his difficult times.” 2:27 Solomon dismissed Abiathar from his position as priest of the Lord, fulfilling the decree of judgment the Lord made in Shiloh against the family of Eli.

2:28 When the news reached Joab (for Joab had supported Adonijah, although he had not supported Absalom), he ran to the tent of the Lord and grabbed hold of the horns of the altar. 2:29 When King Solomon heard that Joab had run to the tent of the Lord and was right there beside the altar, he ordered Benaiah son of Jehoiada, “Go, strike him down.” 2:30 When Benaiah arrived at the tent of the Lord, he said to him, “The king says, ‘Come out!’” But he replied, “No, I will die here!” So Benaiah sent word to the king and reported Joab’s reply. 2:31 The king told him, “Do as he said! Strike him down and bury him. Take away from me and from my father’s family the guilt of Joab’s murderous, bloody deeds. 2:32 May the Lord punish him for the blood he shed; behind my father David’s back he struck down and murdered with the sword two men who were more innocent and morally upright than he – Abner son of Ner, commander of Israel’s army, and Amasa son of Jether, commander of Judah’s army. 2:33 May Joab and his descendants be perpetually guilty of their shed blood, but may the Lord give perpetual peace to David, his descendants, his family, and his dynasty.” 2:34 So Benaiah son of Jehoiada went up and executed Joab; he was buried at his home in the wilderness. 2:35 The king appointed Benaiah son of Jehoiada to take his place at the head of the army, and the king appointed Zadok the priest to take Abiathar’s place.