Roman Catechism 20.19

Chapter 20 — Part II: The Sacraments — Extreme Unction

Section 19. It is, however, a very grievous sin to defer the Holy Unction until, all hope of recovery being lost, life begins to ebb, and the sick person is fast verging into a state of insensibility. It is obvious that if the Sacrament is administered while consciousness and reason are yet unimpaired, and the mind is capable of eliciting acts of faith and of directing the will to sentiments of piety, a more abundant participation of its graces must be received. Though this heavenly medicine is in itself always salutary, pastors should be careful to apply it when its efficacy can be aided by the piety and devotion of the sick person.