Mary’s words are recorded in four passages in the Bible. Three of the four passages are from the Gospel of Luke: the Annunciation, when she speaks with the angel (Luke 1:34 and 38); her visit to Elizabeth, when Mary sings the psalm of praise known as the Magnificat (Luke 1:46-55); and the time that Jesus is lost in the Temple and Mary admonishes him (Luke 2:48).
We also find Mary speaking in the Gospel of John, during the story of the Wedding at Cana. She tells Jesus that there is no more wine (John 2:3) and then tells the servers, “Do whatever he tells you” (John 2:5) — which, as someone once told me, is perhaps the best bit of advice in the entire Bible.