51 Then all the tribes of Israel went to David at Hebron and told him, "We are your own flesh and blood. 2 In the past, when Saul was our king, you were the one who really led the forces of Israel. And the Lord told you, 'You will be the shepherd of my people Israel. You will be Israel's leader.'" 3 So there at Hebron, King David made a covenant before the Lord with all the elders of Israel. And they anointed him king of Israel.
Matthew Henry's Commentary on 2 Samuel 5:1-3
Commentary on 2 Samuel 5:1-5
(Read 2 Samuel 5:1-5)
David was anointed king a third time. His advances were gradual, that his faith might be tried, and that he might gain experience. Thus his kingdom typified that of the Messiah, which was to come to its height by degrees. Thus Jesus became our Brother, took upon him our nature, dwelt in it that he might become our Prince and Saviour: thus the humbled sinner takes encouragement from the endearing relation, applies for his salvation, submits to his authority, and craves his protection.