An unnamed Amalekite went to David, claiming that he had killed Saul. This claim was false. Saul had taken his own life(1 Samuel 31:4–6).
The Amalekite may have hoped that David would reward him for clearing the way for David to become king. Instead, David ordered him to be killed for harming the Lord’s anointed (the person God had chosen).