The time came near for David to die; so he commissioned Shlomo his son as follows:
"I am going the way of all the earth. Therefore, be strong; show yourself a man.
Observe the charge of ADONAI your God to go in his ways and keep his regulations, mitzvot, rulings and instructions in accordance with what is written in the Torah of Moshe; so that you will succeed in all you do and wherever you go.
If you do, ADONAI will fulfill what he promised me when he said, 'If your children pay attention to how they live, conducting themselves before me honestly with all their heart and being, you will never lack a man on the throne of Isra'el.'
"Moreover, you are aware of what Yo'av the son of Tz'ruyah did to me, that is, what he did to the two commanders of the armies of Isra'el, Avner the son of Ner and 'Amasa the son of Yeter - he killed them, shedding the blood of war in peacetime, putting the blood of war on the belt around his waist and the shoes on his feet.
Therefore, act according to your wisdom; don't let his gray head go down to the grave in peace.
"But show kindness to the sons of Barzillai the Gil'adi. Include them with those who eat at your table, because they came and stood with me when I was fleeing from Avshalom your brother.
"Finally, you have with you Shim'i the son of Gera the Binyamini, from Bachurim. He laid a terrible curse on me when I was on my way to Machanayim; but he came down to meet me at the Yarden; so I swore to him by ADONAI that I would not have him put to death with the sword.