Hannah prayed, and said: My heart exults in Yahweh; My horn is exalted in Yahweh; My mouth is enlarged over my enemies; Because I rejoice in your salvation.
(3) The criticism that the song fits Hannah's situation "only in a very general way" is simply untrue.  Every line of it fits Hannah's situation perfectly.  (See below.)