To the wavering, God says to draw near to Him and He will draw near to you.
7 Submit yourselves, then, to God. Resist the devil, and he will flee from you. 8 Draw near to God, and He will draw near to you. Cleanse your hands, you sinners, and purify your hearts, you double-minded. 9 Grieve, mourn, and weep. Turn your laughter to mourning, and your joy to gloom. 10Humble yourselves before the Lord, and He will exalt you. James 4:7-10 BSB
Ellicott’s Commentary for English Readers
(8) Draw nigh to God . . .—God waiteth to be gracious (Isaiah 30:18). Like the father of the prodigal son (Luke 15), He beholds us while we are “yet a great way off,” and runs, as it were, to hasten our return. He has “no pleasure in the death of him that dieth” (Ezekiel 18:32). But who shall come “into the tabernacle of God, or rest upon His holy hill” (Psalm 15:1), except the man “of uncorrupt life”? Surely, the penitent as well; the murderous hands “which all the perfumes of Arabia will not sweeten,” the hearts polluted with the most abominable lusts, may and must be cleansed; sinners and double-minded (refer to James 1:8) though they be, and both in one, the Lord of mercy will “draw nigh” to them, if they to Him: all their “transgressions shall not be mentioned,” they “shall live and not die” (Ezekiel 18:21-22)
…..because he who doubts is like a wave of the sea, blown and tossed by the wind. 7That man should not expect to receive anything from the Lord. 8He is a double-minded man, unstable in all his ways. James 1:6-8 BSB
Barnes’ Notes on the Bible
A double minded man – The word here used, δίψυχος dipsuchos occurs only here and in James 4:8. It means, properly, one who has two souls; then one who is wavering or inconstant. It is applicable to a man who has no settled principles; who is controlled by passion; who is influenced by popular feeling; who is now inclined to one opinion or course of conduct, and now to another.
Is unstable in all his ways – That is, not merely in regard to prayer, the point particularly under discussion, but in respect to everything. From the instability which the wavering must evince in regard to prayer, the apostle takes occasion to make the general remark concerning such a man, that stability and firmness could be expected on no subject. The hesitancy which manifested on that one subject would extend to all; and we might expect to find such a man irresolute and undetermined in all things. This is always true. If we find a man who takes hold of the promises of God with firmness; who feels the deepest assurance when he prays that God will hear prayer; who always goes to him without hesitation in his perplexities and trials, never wavering, we shall find one who is firm in his principles, steady in his integrity, settled in his determinations, and steadfast in his plans of life – a man whose character we shall feel that we understand, and in whom we can confide.