3 Do what the Lord your God commands and follow his teachings. Obey everything written in the Law of Moses. Then you will be a success, no matter what you do or where you go.
4 You and your descendants must always faithfully obey the Lord. If you do, he will keep the solemn promise he made to me that someone from our family will always be king of Israel.
5 Solomon, don't forget what Joab did to me by killing Abner son of Ner and Amasa son of Jether, the two commanders of Israel's army. He killed them as if they were his enemies in a war, but he did it when there was no war. He is guilty, and now it's up to you to punish him
6 in the way you think best. Whatever you do, don't let him die peacefully in his old age.
7 The sons of Barzillai from Gilead helped me when I was running from your brother Absalom. Be kind to them and let them eat at your table.
8 Be sure to do something about Shimei son of Gera from Bahurim in the territory of Benjamin. He cursed and insulted me the day I went to Mahanaim. But later, when he came to meet me at the River Jordan, I promised that I wouldn't kill him.
9 Now you must punish him. He's an old man, but you're wise enough to know that you must have him killed.