This comes when you have a real relationship with Him. Not Religion. For one God protects is own. And if you are his own and you go through a hard time he guides you in the right direction.
Now this may seem far fetched for many but for those whom experienced it first hand. Its reality.
Sent from my LG-H820 using Tapatalk