Behold, you have with you Shimi the son of Gera, the Benjamite from Bachurim, who cursed me with a grievous curse on the day I went to Machanaim. When he came down to meet me at the Jordan, I swore to him by God, saying, ‘I will not kill you with the sword.’ Here David tells his son Solomon to avenge cruelty.
But he also asks Solomon to show kindness to the sons of Barzillai of Glead because they stood by David in his time of danger and now he asks that they eat at Solomon’s table.