The anointing of men and the anointing of God

And Adonijah the son of Haggith exalted himself, saying, I will be king. And he prepared himself chariots and horsemen, and fifty men to run before him.
1 Kings 1:5

And the king swore, and said, As Jehovah lives, who has redeemed my soul out of all distress, surely as I swore to you by Jehovah, the God of Israel, saying, Surely Solomon your son shall reign after me, and he shall sit on my throne in my place, even so I will do today.
1 Kings 1:29-30