This sacred anointing of the sick was instituted by Christ our Lord as a true and proper sacrament of the New Testament. It is alluded to indeed by Mark, but is recommended to the faithful and promulgated by James the apostle and brother of the Lord. 124
Catechism number 1512
From ancient times in the liturgical traditions of both East and West, we have testimonies to the practice of anointings of the sick with blessed oil. Over the centuries the Anointing of the Sick was conferred more and more exclusively on those at the point of death. Because of this it received the name "Extreme Unction." Notwithstanding this evolution the liturgy has never failed to beg the Lord that the sick person may recover his health if it would be conducive to his salvation.125