Having confidence in the midst of personal tragedy comes from believing in the character of God, rather than focusing on your current pain. You are developing your view of God and you're developing your relationship with God based on what you see in Him. In the midst of tragedy look for God and see what He is doing or trying to reveal.