Catechism of the Council of Trent
1004
Part II. Penance
The Effects of Contrition
For whereas most other pious practices, such as alms, fasting, prayer and similar holy and commendable works, are sometimes rejected by God on account of the faults of those who perform them, contrition can never be other than pleasing and acceptable to Him. A contrite and humble heart, O God, exclaims the Prophet, thou wilt not despise.