When you trust in the Word of God, God will alway be with you and He will always guide you.
But, from the moment that you stop trusting in, and obeying the Word of God, the devil enters. He will cause you to worry about external things, taking your mind off of your salvation.