So the king summoned the Gibeonites and spoke to them. (Now the Gibeonites were not of Bnei-Yisrael but a remnant of the Amorites; however, Bnei-Yisrael had sworn a covenant with them. Yet Saul had tried to eradicate them in his zeal for Bnei-Yisrael and Judah.)
So the king sent someone and summoned Shimei. He said to him: “Didn’t I make you swear by Adonai and forewarned you, saying: ‘Know for certain that on the day you depart and go anywhere else, you shall surely die’? You even said to me: ‘The saying is good; I have heard it.’
The king added to Shimei: “You know all the evil, which your heart should acknowledge, that you did to my father David. Therefore Adonai will return your evil on your own head.