Am asking this with regards to the events that happened after the death of Saul, the first king of Israel. Saul was anointed by Samuel to be king over Israel but then after he disobeyed God's command then God ordered Samuel to anoint David king over Israel. This meant that the annointing had passed from Saul to David but then when you read about David killing the soldier who brought him the crown of Saul then it is as if the anointing remained on Saul. Why does the anointing remain even though the person with the anointing has gone contrary to the will of God?
2 Samuel 1:1-15
Now it came to pass after the death of Saul, when David had returned from the slaughter of the Amalekites, and David had stayed two days in Ziklag, 2 on the third day, behold, it happened that a man came from Saul’s camp with his clothes torn and dust on his head. So it was, when he came to David, that he fell to the ground and prostrated himself. 3 And David said to him, “Where have you come from?” So he said to him, “I have escaped from the camp of Israel.” 4 Then David said to him, “How did the matter go? Please tell me.” And he answered, “The people have fled from the battle, many of the people are fallen and dead, and Saul and Jonathan his son are dead also.” 5 So David said to the young man who told him, “How do you know that Saul and Jonathan his son are dead?” 6 Then the young man who told him said, “As I happened by chance to be on Mount Gilboa, there was Saul, leaning on his spear; and indeed the chariots and horsemen followed hard after him. 7 Now when he looked behind him, he saw me and called to me. And I answered, ‘Here I am.’ 8 And he said to me, ‘Who are you?’ So I answered him, ‘I am an Amalekite.’ 9 He said to me again, ‘Please stand over me and kill me, for anguish has come upon me, but my life still remains in me.’ 10 So I stood over him and killed him, because I was sure that he could not live after he had fallen. And I took the crown that was on his head and the bracelet that was on his arm, and have brought them here to my lord.” 11 Therefore David took hold of his own clothes and tore them, and so did all the men who were with him. 12 And they mourned and wept and fasted until evening for Saul and for Jonathan his son, for the people of the LORD and for the house of Israel, because they had fallen by the sword. 13 Then David said to the young man who told him, “Where are you from?” And he answered, “I am the son of an alien, an Amalekite.” 14 So David said to him, “How was it you were not afraid to put forth your hand to destroy the LORD’s anointed?” 15 Then David called one of the young men and said, “Go near, and execute him!” And he struck him so that he died. 16 So David said to him, “Your blood is on your own head, for your own mouth has testified against you, saying, ‘I have killed the LORD’s anointed.’ ”