CIC
Canon 986
Book IV. The sanctifying function of the Church
Sacraments
Code of Canon Law
English§1. All to whom the care of souls has been entrusted in virtue of some function are obliged to make provision so that the confessions of the faithful entrusted to them are heard when they reasonably seek to be heard and that they have the opportunity to approach individual confession on days and at times established for their convenience.
§2. In urgent necessity, any confessor is obliged to hear the confessions of the Christian faithful, and in danger of death, any priest is so obliged.