Asking Allaah for a good ending of one’s life

Allah, we seek refuge with You from turning on our heels from the (Islamic) religion and from being put to trial