Read 2 Samuel 19:23 Using Other Translations
Therefore the king said unto Shimei, Thou shalt not die. And the king sware unto him.
And the king said to Shimei, "You shall not die." And the king gave him his oath.
Then, turning to Shimei, David vowed, “Your life will be spared.”