Teaching them to observe all things whatsoever I have commanded you. But does it suffice for salvation to believe and to be baptized? No; rather, instruction in morals is also required; therefore he says teaching them to observe all things whatsoever I have commanded you. Ps. 118:4: thou hast commanded thy commandments to be kept most diligently. And he says whatsoever I have commanded, not 'what I have counseled.' Hence above, 10:27: what I say to you, I say to all. Then he sets forth the third point: and behold I am with you all days, even to the consummation of the world. Here he promises a...ssistance; and it answers those who say: you command us to teach all men, but we are not sufficient. Do not fear, because I am with you. And note that just as the commandment is set forth as passing to all, so also the assistance; because he promises it to the apostles and to others carrying out a similar task. Hence he himself, praying to the Father, says: and not for them only do I pray, namely the disciples, but for them also who through their word shall believe in me. Hence he promises to all in common; John 14:12: he that believeth in me, the works that I do, he also shall do, and greater than these shall he do. Likewise, for all time; hence he says all days, even to the consummation of the world. He does not say this as though after that he would not be with us, except until the consummation of the world, but because then we will be in consummation in glory; Apoc. 21:3: behold the tabernacle of God with men, and he will dwell with them. And they shall be his people, and God himself with them shall be their God. Hence also in Isa. 7:14 it is said that his name shall be called Emmanuel, which is interpreted 'God with us,' even to the consummation of the world; as if to say: the generation of the faithful is stronger than the world. For the world will not perish until all things are accomplished, i.e., until the Church of the faithful is consummated and the number of the elect is completed by God, unto life everlasting, to whom is honor and power through infinite ages of ages. Amen.
Source: Commentary on Matthew