This beautiful Prayer for a Happy Death was written by Blessed John Henry Cardinal Newman. In it we ask for all of the elements of a happy death: contrition and absolution; Last Rites and the reception of Holy Communion; and spiritual and physical peace. It is an ideal prayer to pray before going to bed.
Prayer for a Happy Death
O my Lord and Saviour, support me in my last hour by the strong arms of Thy sacraments, and the fragrance of Thy consolations. Let Thy absolving words be said over me, and the holy oil sign and seal me; and let Thine own body be my food, and Thy blood my sprinkling; and let Thy Mother Mary come to me, and my angel whisper peace to me, and Thy glorious saints and my own dear patrons smile on me, that in and through them all I may die as I desire to live, in Thy Church, in Thy faith, and in Thy love. Amen.
My Jesus, mercy.