1 Kings 2:5-6

2:5 “You know what Joab son of Zeruiah did to me – how he murdered two commanders of the Israelite armies, Abner son of Ner and Amasa son of Jether. During peacetime he struck them down like he would in battle; when he shed their blood as if in battle, he stained his own belt and the sandals on his feet. 2:6 Do to him what you think is appropriate, but don’t let him live long and die a peaceful death.

1 Kings 2:33-34

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.