44 The king also said to Shimei, “You know in your heart all the wrong you did to my father David. Now the LORD will repay you for your wrongdoing.

Read 1 Kings 2:44 Using Other Translations

The king said moreover to Shimei, Thou knowest all the wickedness which thine heart is privy to, that thou didst to David my father: therefore the LORD shall return thy wickedness upon thine own head;
The king also said to Shimei, "You know in your own heart all the harm that you did to David my father. So the LORD will bring back your harm on your own head.
The king also said to Shimei, “You certainly remember all the wicked things you did to my father, David. May the LORD now bring that evil on your own head.