If any of you lacks wisdom, let him ask of God, who gives to all liberally and without reproach, and it will be given to him. – James 1:5
When God is making you feel the burden of your guilt, you suppose that now He has forgotten to be gracious, whereas it is now that He is gracious to you in very deed and is using the best means of making you understand and value His grace. The way of life is a new road to you, poor seeking soul, and therefore you lack wisdom in it and make many mistakes about it. The text lovingly advises, “Ask of God;” “Ask of God.”
Many lack wisdom because, in addition to all their fears and their ignorance, they are fiercely attacked by Satan. John Bunyan tells us of Apollyon, that he said, “No king will willingly lose his subjects.” Of course, he will not; and Apollyon, as he sees his subjects one after another desert him to enlist under the banner of King Jesus, howls at his loses, and he leaves no stone unturned to keep souls back from mercy. Just at that critical moment he says to himself, “It is now or never. If I do not nip these buds, they will become flowers and fruits; but if I can bring in a withering frost, I shall kill the young plant.” The great enemy makes a dead set at anxious souls…”Now,” saith he to all is servants, “shoot your arrows at that awakened soul; it is about to escape from me: empty your quivers, ye soldiers of the pit; launch your hot temptations, ye fiends of hell! Sting that soul with infidel insinuations and hideous blasphemies, for if I once lose it, I have lost it forever; therefore, hold it, ye princes of the pit, hold it fast, if ye can.” Now, in such a plight as that, with your foolish heart, and the wicked world, and the evil one, and your sins in dreadful alliance to destroy you, what could such a poor timid one as you do, if it were not for this precious word, “If any of you”-that must mean you-“If any of you lack wisdom, let him ask of God, that giveth to all men liberally, and upbraideth not”? ~ C.H. Spurgeon
https://www.blueletterbible.org/Comm/spurgeon_charles/sermons/0735.cfm