So Hannah rose up after they had eaten in Shiloh, and after they had drunk. Now Eli the priest was sitting on his seat by the door-post of the temple of Yahweh.
"Go in peace, and the God of Israel grant your petition." This response from Eli came after Hannah explained to the High Priest his mistake, and we view this sentence from the lips of Eli as a prayer to God, and not merely as "a wish" that God would answer Hannah's prayer.  The proof of this is seen in the fact of Hannah's being "no longer sad"  (1 Samuel 1:18).  The prayer of the great High Priest and judge of Israel himself was the factor that resulted in the dramatic change in Hannah's attitude.