5 “Now you yourself know what Joab son of Zeruiah did to me—what he did to the two commanders of Israel’s armies, Abner son of Ner and Amasa son of Jether. He killed them, shedding their blood in peacetime as if in battle, and with that blood he stained the belt around his waist and the sandals on his feet. 6 Deal with him according to your wisdom, but do not let his gray head go down to the grave in peace.
7 “But show kindness to the sons of Barzillai of Gilead and let them be among those who eat at your table. They stood by me when I fled from your brother Absalom.
8 “And remember, you have with you Shimei son of Gera, the Benjamite from Bahurim, who called down bitter curses on me the day I went to Mahanaim. When he came down to meet me at the Jordan, I swore to him by the Lord: ‘I will not put you to death by the sword.’ 9 But now, do not consider him innocent. You are a man of wisdom; you will know what to do to him. Bring his gray head down to the grave in blood.”
To Joab, winning and power was everything. Barzillai stood for those loyal to God and for those who lived by God’s standard. David gave Solomon harsh advice to deal accordingly to those who opposed God’s appointed king. David was telling Solomon to give the punishment that his enemies deserved. It was against civil law and God’s laws to curse a king. Do you live by God’s standards or by the world’s standards. Do you seek power and gain by trampling over others or by defying leadership? Look at how you are living your life and look at how you are working toward goals you have and make sure you are godly in your actions, as well as, following the law.