When Jesus, therefore, saw his mother and the disciple standing by, whom he loved, he said to his mother, “Woman, behold, thy son.” Then he said to the disciple, “Behold, thy mother.” And from that hour the disciple took her into his home (Jn 19:26, 27).
With those words, the dying Christ commended his mother to the loving care of St. John the Apostle. Where Mary lived with the beloved disciple afterward is an open question.