# They anointed David king over Israel
To "anoint" is a symbolic act to show that they recognized that God had chosen David as king.
# the word of Yahweh that had been declared by Samuel
"the word of Yahweh that Samuel had declared"