2439 The Evangelist now mentions Christ's concern for his mother (v 26). But first we see his solicitude for the welfare of his disciple, whom he entrusted to his mother; then we see his concern for his mother, whom he gave into the keeping of his disciple.
2440 As to the first he says, When Jesus saw his mother, and the disciple whom he loved standing near, he said to his mother, Woman, behold, your son! He is saying: Up to now I have taken care for you and watched over you. Now, you take care for my disciple. This shows the eminence of John.
Before, when the Mother of Jesus said, "They hav...e no wine," (2:3), he replied, "O woman, what have you to do with me? My hour has not yet come," that is, the hour of my passion, when I will suffer by means of what I have received from you. But when that hour comes I will acknowledge you. And now that the hour has come, he does acknowledge his mother. Yet I do not have the power to work miracles through what I have received from you, but rather through what I have from the generation of the Father, that is, insofar as I am God.
2441 As Augustine says, Christ hanging on the cross is like a teacher in his teaching chair. He is teaching us to help our parents in their needs, and to take care of them: "Honor your father and your mother" (Ex 20:12); "If any one does not provide for his relatives, and especially for his own family, he has disowned the faith and is worse than an unbeliever" (1 Tim 5:8).
Why is the contrary found in Luke? "If any one comes to me and does not hate his own father and mother and wife and children and brothers and sisters, yes, and even his own life, he cannot be my disciple" (Lk 14:26). I answer that when our Lord commands us to hate our parents and ourselves, he is commanding us to love them, their own individual nature and our own individual nature, and to hate moral evil and what turns our natures away from God. This means that we must aid our parents, love and reverence them as these human beings, but hate their moral vices and what in them turns us away from God.
Source: Commentary on John