CCC 2744 cites Galatians 5:16-25 (which discusses among other things, works)–footnote 38. I’ll include CCC 2744 for added insight into Galatians 5:16-25 as well.
CCC 2744 Prayer is a vital necessity. Proof from the contrary is no less convincing: if we do not allow the Spirit to lead us, we fall back into the slavery of sin.38 How can the Holy Spirit be our life if our heart is far from him?
Nothing is equal to prayer; for what is impossible it makes possible, what is difficult, easy. . . . For it is impossible, utterly impossible, for the man who prays eagerly and invokes God ceaselessly ever to sin.39
Those who pray are certainly saved; those who do not pray are certainly damned.40
GALATIANS 5:16-25 16 But I say, walk by the Spirit, and do not gratify the desires of the flesh. 17 For the desires of the flesh are against the Spirit, and the desires of the Spirit are against the flesh; for these are opposed to each other,
to prevent you from doing what you would. 18 But if you are led by the Spirit you are not under the law. 19 Now the works of the flesh are plain: fornication, impurity, licentiousness, 20 idolatry, sorcery, enmity, strife, jealousy, anger, selfishness, dissension, party spirit, 21 envy, drunkenness, carousing, and the like. I warn you, as I warned you before, that those who
do such things shall not inherit the kingdom of God. 22 But the fruit of the Spirit is love, joy, peace, patience, kindness, goodness, faithfulness, 23 gentleness, self-control; against such there is no law. 24 And those who belong to Christ Jesus have crucified the flesh with its passions and desires. 25 If we live by the Spirit, let us also
walk by the Spirit.