How to stop fear

How can you stop fear from attacking your thoughts? And so it went I would pray to God to help me control this unsettled fear and not long after I would think a new thought which would lead to fear, so again I would pray and the cycle would continue. What I was experiencing is what I call a fear trap.