3 Obey the Lord your God. Follow him by obeying his demands, his commands, his laws, and his rules that are written in the teachings of Moses. If you do these things, you will be successful in all you do and wherever you go.
4 And if you obey the Lord, he will keep the promise he made to me. He said: ‘If your descendants live as I tell them and have complete faith in me, a man from your family will always be king over the people of Israel.’
5 “Also, you remember what Joab son of Zeruiah did to me. He killed the two commanders of Israel’s armies: Abner son of Ner and Amasa son of Jether. He did this as if he and they were at war, although it was a time of peace. He put their blood on the belt around his waist and on his sandals on his feet.
6 Punish him in the way you think is wisest, but do not let him die peacefully of old age.
7 “Be kind to the children of Barzillai of Gilead, and allow them to eat at your table. They welcomed me when I ran away from your brother Absalom.
8 “And remember, Shimei son of Gera, the Benjaminite, is here with you. He cursed me the day I went to Mahanaim. But when he came down to meet me at the Jordan River, I promised him before the Lord, ‘Shimei, I will not kill you.’
9 But you should not leave him unpunished. You are a wise man, and you will know what to do to him, but you must be sure he is killed.”