(ubi sup.) But observe that the righteousness of the law, when kept in its own time, conferred not only earthly goods, but also eternal life on those who chose it. Wherefore the Lord's answer to one who enquires concerning everlasting life is, Thou knowest the commandments, Do not commit adultery, Do not kill; for this is the childlike blamelessness which is proposed to us, if we would enter the kingdom of heaven.
Source: Catena Aurea by Aquinas