1 The Lord being now crucified, and the parting of His garments having also been completed by the casting of the lot, let us look at what the evangelist John thereafter relates. “And these things,” he says, “the soldiers did. Now there stood by the cross of Jesus His mother, and His mother's sister, Mary [the wife] of Cleophas, and Mary Magdalene. When Jesus therefore saw His mother, and the disciple standing by whom He loved, He says unto His mother, Woman, behold your son!
Then says He to the disciple, Behold your mother! And from that hour the disciple took her unto his own home.” This, without a doubt, was the hour whereof Jesus, when about to turn the water into wine, had said to His mother, “Woman, what have I to do with you? Mine hour is not yet come.” This hour, therefore, He had foretold, which at that time had not yet arrived, when it should be His to acknowledge her at the point of death, and with reference to which He had been born as a mortal man.
At that time, therefore, when about to engage in divine acts, He repelled, as one unknown, her who was the mother, not of His divinity, but of His [human] infirmity; but now, when in the midst of human sufferings, He commended with human affection [the mother] by whom He had become man. For then, He who had created Mary became known in His power; but now, that which Mary had brought forth was hanging on the cross.
Source: Tractates on the Gospel of John (New Advent)