There is an exhortation of Anselm (1033-1109) to a dying brother, written in the most comforting words: “When a brother seems to be in his death struggle, it is godly and advisable to exercise him through a prelate or other priest with written questions and exhortations. He may be asked in the first place: ‘Brother, are you glad that you will die in the faith?’ let him answer: ‘Yes.’ ‘Do you confess that you did not live as well as you should have?’ ‘I confess.’ ‘Are you sorry for this?’ ‘Yes.’ ‘Are you willing to better yourself if you should have further time to live?’ ‘Yes.’ ‘Do you believe that the Lord Jesus Christ, the Son of God, has died for you?’ ‘Yes.’ ‘Do you believe that you cannot be saved except through his death?’ ‘Yes.’ ‘Do you heartily thank him for this?’ ‘Yes.’ ‘Therefore always give thanks to him while your soul is in you, and on this death alone place your whole confidence. Commit yourself wholly to this death, with this death cover yourself wholly, and wrap yourself in it completely. And if the Lord should want to judge you, say: “Lord, I place the death of our Lord Jesus Christ between me and thee and thy judgment; I will not contend with Thee in any other way.” If he says that you have merited damnation, say: “I place the death of our Lord Jesus Christ between myself and my evil deserts, and the merits of his most worthy passion I bring in place of the merit which I should have had, and, alas, do not have.” ’
Martin Chemnitz, “Examination of the Council of Trent, Part 1, Eighth Topic: “Concerning Justification”, Section II, “Testimonies of the Ancients Concerning Justification”, pg 511.