Since the apostle recognizes humility as the guardian of everything good and nothing is accomplished without it among the diligent, he adds: "Let the lowly brother glory in his exaltation." He likens the doubter to a wave of the sea, which rises at the blowing of the wind and sinks down sooner than it is raised up. The doubter experiences something similar when, through pride, he does not ground his petitions on anything unchangeable. Therefore the apostle adds: "Let the lowly brother glory." He speaks as if to say: whoever wishes to ask for something, let him first ask for what is necessary, ...concerning the obtaining of which he cannot be deceived, that is: "the Kingdom of God and His righteousness" (Matt. 6:33). Then let him ask for this constantly — not in such a way that he prays a little and immediately gives up, for this is characteristic of the proud — but let him ask persistently, patiently awaiting what he will receive with humility of soul.
Source: Commentary on James