1 Kings 2:28-35 - Joab's Execution
28 Joab received news of this for Joab had been one of Adonijah's supporters. He was not on Absalom's side. Then Joab went in flight to the Tent of Jehovah and put his hands on the corners of the altar.
29 When King Solomon heard about this he sent Benaiah son of Jehoiada to kill him.
30 Benaiah went to the Tent of Jehovah and told Joab: Come out. Joab said: No! Let me die here. So Benaiah returned to the king and gave him the answer Joab gave him.
31 The king said: Do as he said. Kill him there and bury him in the earth. This will remove the guilt of his senseless murders from my father's family and me. 32 Jehovah will punish Joab for those murders he committed without my father David's knowledge. Joab killed two innocent men who were better men than he: Abner, commander of the army of Israel, and Amasa, commander of the army of Judah. 33 Jehovah will repay him for the blood Joab shed. The blood will fall on Joab and on his descendants as long as they live. Jehovah will always give success to David's descendants who sit on his throne.
34 So Benaiah went to the Tent of Jehovah's presence and killed Joab. He was buried at his home in the wilderness. 35 The king made Benaiah commander of the army in Joab's place and put Zadok the priest in Abiathar's place.