1 Samuel 2:1
1 Hannah prayed, “My heart has rejoiced in the Lord; my horn has been raised high because of the Lord. I have loudly denounced my enemies. Indeed, I rejoice in your deliverance. 2 No one is holy like the Lord! There is no one other than you! There is no rock like our God! 3 Don’t keep speaking so arrogantly. Proud talk should not come out of your mouth, for the Lord is a God who knows; he evaluates what people do. 4 The bows of warriors are shattered, but those who stumbled have taken on strength. 5 The well fed hire themselves out to earn food, but the hungry no longer lack. Even the barren woman has given birth to seven, but the one with many children has declined. 6 The Lord both kills and gives life; he brings down to the grave and raises up. 7 The Lord impoverishes and makes wealthy; he humbles and he exalts. 8 He lifts the weak from the dust; he raises the poor from the ash heap to seat them with princes—he bestows on them an honored position. The foundations of the earth belong to the Lord—he placed the world on them.
43 And who am I that the mother of my Lord should come and visit me? 44 For the instant the sound of your greeting reached my ears, the baby in my womb leaped for joy. 45 And blessed is she who believed that what was spoken to her by the Lord would be fulfilled.” 46 And Mary said, “My soul exalts the Lord, 47 and my spirit has begun to rejoice in God my Savior, 48 because he has looked upon the humble state of his servant. For from now on all generations will call me blessed, 49 because he who is mighty has done great things for me, and holy is his name; 50 from generation to generation he is merciful to those who fear him. 51 He has demonstrated power with his arm; he has scattered those whose pride wells up from the sheer arrogance of their hearts. 52 He has brought down the mighty from their thrones, and has lifted up those of lowly position; 53 he has filled the hungry with good things, and has sent the rich away empty. 54 He has helped his servant Israel, remembering his mercy, 55 as he promised to our ancestors, to Abraham and to his descendants forever.”
Notes and References
"... Since there is no evidence that the Magnificat ever existed in a Semitic (Hebrew or Aramaic) form, there is no reason to think of Mary as the one who has composed it. It has not been preserved by a family tradition. The heavy dependence on the Greek Old Testament makes it evident that it is a cento-like composition, a mosaic of Old Testament expressions drawn from the LXX ... there are many other allusions, to which the notes on various verses call attention. The best way to ascertain the extent of dependence of the Magnificat on the Old Testament is to compare its Greek text with the Greek form of the Old Testament verses involved, especially with the Song of Hannah (1 Samuel 2:1-10), its principal model ... Moreover, it is hardly likely that Luke composed the Magnificat himself, since it fits so loosely into the present context. It has often been compared to the speeches in Acts, in which largely Lucan compositions give utterance to ideal sentiments of the speakers involved. This is true of the Magnificat, but it could be omitted without anything essential being lost to the narrative of the visitation itself. The song praises God's salvific activity in generic terms without anything specifically referring to Mary's visit to Elizabeth ..."
Fitzmyer, Joseph A. The Gospel According to Luke: Introduction, Translation, and Notes (p. 359) Doubleday, 1981