Psalms 135:5–6 “For I know that the Lord is great, and that our Lord is above all gods. Whatever the Lord pleases, he does, in heaven and on earth, in the seas and all deeps.”
I believe that the book of James makes it clear that humans are driven to do what they do based on their desires. The problem with fallen man is that our hearts and darkened and only bring forth the desires that lead to sin and isolation from the true and living God. Redemption changes our heart so that our wanters begin to want to do that which is true, good, and wise. We still do what we desire, but those desires now want to live for God’s glory and not our own.
What’s interesting from the above verses is that the Lord does what he desires; he never does contrary. I wanted to say that he does what he desires to do just like us. But it is better to say that the reason we do what we desire is because we are created in the image of the one who does what he desires. Our great God does whatever pleases him in heaven and on earth.