When you are certain that your last moments in your life have come, you have to repeat the word of
" There is no god but Allah " to confirm your belief in god and pray. Try to avoid any other words and worldly matters. Your family and friends can not protect you form going to your final destination.