Psalm 45 is a Messianic Psalm with references to the Blessed Virgin Mary. Here it is with annotations:
To the choirmaster: according to Lilies. A Maskil of the Sons of Korah; a love song.
1 My heart overflows with a goodly theme; I address my verses to the king; my tongue is like the pen of a ready scribe.
2 You are the fairest of the sons of men; grace is poured upon your lips; therefore God has blessed you forever. [This is a reference primarily to Jesus but also can be read to encompass Mary, both of whom are in one sense the “fairest of the sons of men”. We see grace poured out on Jesus at his Baptism and Mary is called “full of grace” in Luke. Also, in Luke Mary says, “every generation will call me blessed.]
3 Gird your sword upon your thigh, O mighty one, in your glory and majesty!
4 In your majesty ride forth victoriously for the cause of truth and to defend the right; let your right hand teach you dread deeds! 5 Your arrows are sharp in the heart of the king’s enemies; the peoples fall under you.
6* Your divine throne endures for ever and ever. Your royal scepter is a scepter of equity; [in Revelation we see Jesus will rule with an “iron scepter”] 7 you love righteousness and hate wickedness.
Therefore God, your God, has anointed you [Messiah means “anointed one”] with the oil of gladness above your fellows; 8 your robes are all fragrant with myrrh [one of the gifts given to Jesus at Bethlehem] and aloes and cassia.
From ivory palaces stringed instruments make you glad; 9 daughters of kings are among your ladies of honor; at your right hand stands the queen in gold of Ophir. [since the Jewish kings had many wives the queen was not one of his wives but rather was the mother of the King, aka the “Queen Mother”, Mary is the mother of the King].
10 Hear, O daughter, consider, and incline your ear; forget your people and your father’s house;
11 and the king will desire your beauty. Since he is your lord, bow to him; 12 the people* of Tyre will sue your favor with gifts, the richest of the people 13 with all kinds of wealth. The princess is decked in her chamber with gold-woven robes; 14 in many-colored robes she is led to the king, with her virgin companions, her escort, in her train. [Here we see the virgin princess is to marry the king. Mary is a virgin at the time of Jesus’ conception. She can said to be the “spouse” of the Holy Spirit as it is through her union with the Holy Spirit that the incarnation occurred. Mary is queen by marriage and motherhood.] 15 With joy and gladness they are led along as they enter the palace of the king.
16 Instead of your fathers shall be your sons; you will make them princes in all the earth. 17 I will cause your name to be celebrated in all generations; therefore the peoples will praise you for ever and ever. [Again, in Luke, Mary says, “every generation will call me blessed”. Prophetically, we see that praise of Mary is something that is proper.]