Catechism of the Catholic Church §2340 — excerpt
Whoever wants to remain faithful to his baptismal promises and resist temptations will want to adopt the means for doing so: self-knowledge, practice of an ascesis adapted to the situations that confront him, obedience to God's commandments, exercise of the moral virtues, and fidelity to prayer.
This translation is under copyright, so only the cited words are quoted here. Follow the link for the full text. Translation: English translation of the Catechism of the Catholic Church, 2nd ed. (Libreria Editrice Vaticana), as posted at vatican.va.
