Thanksgiving after Having Escaped a Danger

Dear God, and you, my guardian angel, I give you thanks for the help you have sent me during the time
of the danger that threatened me. May it be a warning and may it enlighten me concerning the wrongs that I could have brought upon myself. Lord, I understand that my life is in your hands, and that you may take it from me whenever it pleases you. Inspire in me, through the good spirits who assist me, the thought of usefully employing the time you have granted me in this world. My guardian angel, uphold me in the resolution I have made to repair my errors and to do all the good within my abilities so that I may arrive with fewer imperfections in the spirit world when it pleases God to call me.