David was three times anointed as king.
1. First among his brethren in secret by Samuel, at God's direction (1Sa 16:13).
2. Second, David was owned as king by Judah (2Sa 2:4).
3. Third, he was anointed as king "over all Israel" (2Sa 5:3).
This threefold anointing of David as king, is typical of the threefold crowning of Christ. He is "crowned with glory and honour," as man now (Hbr 2:9). He will reign over the house of Israel, when He is acknowledged by Israel, and sits on David's throne (Luk 1:31-33); and He will yet be "King of kings, and Lord of lords" (Rev 19:16). All powers are to be under His power and to submit to His sway (1Cr 15:24-28).