Sam Storms has a wonderful commentary on Psalm 119. Here is a quote:
Although utterly and in all ways dependent on God for help, don’t overlook the fact that the psalmist repeatedly commits himself and “promises” to take action to learn, store up, and diligently keep the Word of God. The antecedent priority of God’s work in his heart does not preclude or undermine his responsibility to exercise his will in the active embrace of the Word. We see this, for example, in vv. 8, 11, 15 (“I will delight in your statutes; I will not forget your word”), 30, 32, 44, 57, 59-60, 101-102, 106, 112 (“I incline my heart to perform your statutes forever, to the end”), 145.
Personal note: Being from Minnesota and knowing many farmers, I am reminded how farmers are completely and totally dependent on God for the success or failure of their crop, as only God controls the weather and gives the growth. This spring has seen days on days of rain, flooded, soggy fields and many farmers have NO crop planted yet.
However, no farmer I know just lies on his couch all day praying for God to take care of his weeds or fertilizing or whatever. Diligent farmers work very hard, while at the same time recognizing their dependence on God. It is the same with our walk of faith. As Sam Storms said above, “The antecedent priority of God’s work in his heart does not preclude or undermine his responsibility to exercise his will in the active embrace of the Word.”
I think Paul puts it this way in Philippians 2:12-13 Therefore, my beloved, as you have always obeyed, so now, not only as in my presence but much more in my absence, work out your own salvation with fear and trembling, for it is God who works in you, both to will and to work for his good pleasure.