22When the time of their purification according to the Law of Moses had been completed, Joseph and Mary took him to Jerusalem to present him to the Lord 23(as it is written in the Law of the Lord, “Every firstborn male is to be consecrated to the Lord”**), 24and to offer a sacrifice in keeping with what is said in the Law of the Lord: “a pair of doves or two young pigeons.”[c]
25Now there was a man in Jerusalem called Simeon, who was righteous and devout. He was waiting for the consolation of Israel, and the Holy Spirit was upon him. 26It had been revealed to him by the Holy Spirit that he would not die before he had seen the Lord’s Christ. 27Moved by the Spirit, he went into the temple courts. When the parents brought in the child Jesus to do for him what the custom of the Law required, 28Simeon took him in his arms and praised God, saying:
29"Sovereign Lord, as you have promised,
you now dismiss[d] your servant in peace.
30For my eyes have seen your salvation,
31which you have prepared in the sight of all people,
32a light for revelation to the Gentiles
and for glory to your people Israel."
33The child’s father and mother marveled at what was said about him. 34Then Simeon blessed them and said to Mary, his mother: “This child is destined to cause the falling and rising of many in Israel, and to be a sign that will be spoken against, 35so that the thoughts of many hearts will be revealed. And a sword will pierce your own soul too.”
Ephesians 6:17
Take the helmet of salvation and the sword of the Spirit, which is the word of God.
Hebrews 4:12
For the word of God is living and active. Sharper than any double-edged sword, it penetrates even to dividing soul and spirit, joints and marrow; it judges the thoughts and attitudes of the heart.
Romans 2:12
All who sin apart from the law will also perish apart from the law, and all who sin under the law will be judged by the law.
Off the top of my head, the sword that will pierce Mary’s heart is the word of God and that word reveals the sin in Mary’s heart —
“the thoughts of many hearts will be revealed.”
2 Corinthians 5:10
for all of us it behoveth to be manifested before the tribunal of the Christ, that each one may receive the things ‘done’ through the body, in reference to the things that he did, whether good or evil; (YLT)
But, I will have to do some reading and thinking.

**