2127 Now he explains his words and removes the perplexity of the disciples, not just repeating what he had said, but setting their minds at ease. First, he states that there will be a division of those who are sad and those who are joyful; secondly, he mentions their own interior sorrow; and thirdly, the joy that will follow.
2128 About the first, he says, Truly, truly I say to you that during that little while in which you will not see me you will weep, groaning aloud in sad tones, and lament, shedding tears: "She weeps bitterly in the night," referring to the first, "tears on her cheeks" re...ferring to the second (Lam 1:2); "Keep your voice from weeping" (Jer 31:16).
2129 But their interior sadness will be in contrast to the joy of the world. Thus he says, but the world will rejoice. This can be understood in a particular way as referring to the time of Christ's passion, and then the world, that is, the Scribes and Pharisees, will rejoice that Christ is killed: "Ah, this is the day we longed for; now we have it; we see it!" (Lam 2:16). Or the world, that is the evil members of the Church, will rejoice that the saints are persecuted: "The inhabitants of the earth will rejoice" (Rev 17:8). Or in a general sense, the world, those living carnally, will rejoice in worldly things: "And behold, joy and gladness, slaying oxen and killing sheep, eating flesh and drinking wine" (Is 22:13).
The sorrow of the disciples follows, and so he says, you will be sorrowful, because of the sufferings you will have in this world, or rather at my being killed. This is the way the saints are saddened: by the sufferings they endure at the hands of the world and by sin: "For godly grief produces a repentance that leads to salvation" (2 Cor 7:10).
2130 Yet joy will follow this sadness, because your sorrow, which you will experience over my passion, will turn into joy, at my resurrection: "The disciples were glad when they saw the Lord" (20:20). And in general, the sorrow of all the saints will be turned into the joy of the future life: "Blessed are those who mourn, for they shall be comforted" (Mt 5:4); "He that goes forth weeping, bearing the seed for sowing, shall come home with shouts of joy" (Ps 126:6). For the saints weep as they sow during this time of merit, but they will rejoice at the reaping, during the time of reward.
Source: Commentary on John