Samuel
1 Samuel 2:1BSB·traditional attribution

At that time Hannah prayed: “My heart rejoices in the LORD; my horn is exalted in the LORD. My mouth speaks boldly against my enemies, for I rejoice in Your salvation.

Matthew Henry Presbyterian @wholebiblehenry

We have here Hannah's thanksgiving, dictated, not only by the spirit of prayer, but by the spirit of prophecy. Her petition for the mercy she desired we had before (Sa1 1:11), and here we have her return of praise; in both out of the abundance of a heart deeply affected (in the former with her own wants, and in the latter with God's goodness) her mouth spoke.

Commenting on 1 Samuel 2:1-10

John Gill Reformed Baptist @doctorgill

And Hannah prayed and said,.... She had prayed before, but that was mental, this vocal; she had prayed and was answered, and had what she prayed for, and now she gives thanks for it; and thanksgiving is one kind of prayer, or a part of it; see Ti1 2:1, wherefore though what follows is a song, it was expressed in prayer; and therefore it is...

Geneva Bible Notes Reformed @genevanotes

And Hannah prayed, and said, My heart rejoiceth in the LORD, mine horn is exalted in the LORD: my mouth is enlarged over mine enemies; because I rejoice in thy salvation. (a) After she had obtained a son by prayer she gave thanks. (b) I have recovered strength and glory by the benefit of the Lord. (c) I can answer them that criticize my barrenness.