James 1:2-8 (ESV)
Count it all joy, my brothers, when you meet trials of various kinds,  for you know that the testing of your faith produces steadfastness.  And let steadfastness have its full effect, that you may be perfect and complete, lacking in nothing.
 If any of you lacks wisdom, let him ask God, who gives generously to all without reproach, and it will be given him.  But let him ask in faith, with no doubting, for the one who doubts is like a wave of the sea that is driven and tossed by the wind.  For that person must not suppose that he will receive anything from the Lord;  he is a double-minded man, unstable in all his ways.
What do I say here? Let him ask in faith, with no doubting… For that person must not suppose that he will receive anything from the Lord;
Then who do I receive it from? Is it not the Lord himself who gives me faith? I’m sorry I read James and I am left wondering about it. Some people read it and say they see nothing but gospel. I read it and really begin to wonder. The opening blurb my bible has for this book calls it the proverbs of the New Testament. Sorry, I’ll stick with Proverbs. Not that I encourage doubt, but I don’t think that faith is man’s work. And God does in fact give everything to all people; even evil people receive whatever they have from God. I can't help but think here of the father who responds to Jesus “I believe, help thou my unbelief”! And of course Jesus grants his request.
Of course then this does also expose the problem with the sinner’s prayer, doesn’t it? Either one has faith with which to ask God, or he doesn’t. If you have come to the point where you would want to pray the sinners prayer, you already have faith. If you don’t believe, how can you then ask God for forgiveness. Prayer is born of faith. Weak faith prays, and so does strong faith. But if you have no faith at all then you have no reason to pray either.
This too goes for the prayer at the end of the book of Mormon. By even praying it you show that you believe it, or want to believe it. Everything afterwards follows on that. You pray to that which you believe.