1 David knew that he would soon die. So this is what he said to his son Solomon:
2 ‘Soon I will die, as everyone must die one day. So, be strong and brave, as a man should be. 3 Do what the Lord your God tells you to do. Live in a way that pleases him. Obey his rules, commands and laws that Moses has written down in his books of God's Law. Then everything that you do will go well, wherever you go. 4 The Lord will also do what he has promised me that he will do. He promised this to me:
“Your descendants must be careful in how they live. They must serve me faithfully with all their mind and strength. If they do that, one of your descendants will always rule Israel as king.”
5 Do not forget what Zeruiah's son Joab did to me. He killed the two leaders of Israel's armies, Ner's son Abner and Jether's son Amasa. Joab killed them as if they were his enemies in a war. But there was no war. So he is guilty of their deaths when they had done nothing wrong. Their blood is on his belt and on his shoes. 6 So you should punish him in a way that you think is right. Do not let him die in peace as an old man.
7 Be kind to the sons of Barzillai, who lived in Gilead. Let them eat meals at your table. Help them, because they helped me when I was running away from your brother Absalom.
8 Remember that Shimei is still there to give you trouble. He is the son of Gera who came from Bahurim, and he belonged to Benjamin's tribe. When I went to Mahanaim, he prayed that terrible things would happen to me. But when he came to meet me at the Jordan river, I made a promise to him. I promised him in the Lord's name that I would not punish him with death. 9 But remember that he is guilty! You are a wise man, so you will know what to do to him. Even if he is an old man, make sure that he has a violent death.’
10 Then David died. They buried him in the City of David. 11 David had ruled Israel as king for 40 years. He ruled for seven years in Hebron. Then he ruled for 33 years in Jerusalem.