As for Yahweh, those who contend with him will be shattered.
He will thunder against them in heaven.
Yahweh will judge the ends of the earth.
He will give strength to his king,
and exalt the horn of his anointed one.” Bible

“shattered.” The meaning of the Hebrew word translated “shattered” can also be “terrified, dismayed.” This fits well with the context that God thunders against them.

“his anointed one.” In Hebrew, the word “anointed” is “messiah.” Hannah looked forward to the future Messianic Kingdom, ruled by the Messiah. The reign of the Messiah was foretold even in Genesis and it would be glorious. Here in Samuel, Israel was not yet a kingdom, so Hannah is not ultimately looking forward to just another earthly king, but rather to God’s appointed king and Messiah. Nevertheless, she would have almost certainly known the prophecy of Moses in Deuteronomy 17 that there would be earthly kings of Israel before the Messianic reign, so she would have been anticipating an earthly monarchy, which we know to be the Davidic Monarchy. It is also likely that she also thought, due to the circumstances of her pregnancy, that her son would somehow play a role in that monarchy, which indeed he did, anointing first Saul and then David himself.

Commentary for: 1 Samuel 2:10