King Solomon was told that Joab had fled to the tent of the LORD and was beside the altar.1 Then Solomon ordered Benaiah2 son of Jehoiada, "Go, strike him down!"
References for 1 Kings 2:29
So Benaiah entered the tent3 of the LORD and said to Joab, "The king says, 'Come out!4' " But he answered, "No, I will die here." Benaiah reported to the king, "This is how Joab answered me."
References for 1 Kings 2:30
Then the king commanded Benaiah, "Do as he says. Strike him down and bury him, and so clear me and my father's house of the guilt of the innocent blood5 that Joab shed.
References for 1 Kings 2:31
The LORD will repay6 him for the blood he shed,7 because without the knowledge of my father David he attacked two men and killed them with the sword. Both of them--Abner son of Ner, commander of Israel's army, and Amasa8 son of Jether, commander of Judah's army--were better9 men and more upright than he.
References for 1 Kings 2:32
May the guilt of their blood rest on the head of Joab and his descendants forever. But on David and his descendants, his house and his throne, may there be the LORD's peace forever."
So Benaiah10 son of Jehoiada went up and struck down Joab11 and killed him, and he was buried on his own land in the desert.
References for 1 Kings 2:34
The king put Benaiah12 son of Jehoiada over the army in Joab's position and replaced Abiathar with Zadok13 the priest.
References for 1 Kings 2:35