To "anoint" is a symbolic act to show that they recognized that God had chosen David as king.
"the word of Yahweh that Samuel had declared"