But Mary was treasuring up all these things in her heart and meditating on them.
But Mary kept all these things, and pondered them in her heart.
But Mary was keeping within herself all these things (sayings), weighing and pondering them in her heart.
But Mary kept all these sayings, pondering them in her heart.
Mary committed these things to memory and considered them carefully.
But Mary kept all these words, pondering them in her heart.