I wonder if James was thinking about these verses when he wrote:
Do not be deceived, my beloved brothers. Every good gift and every perfect gift is from above, coming down from the Father of lights with whom there is no variation or shadow due to change.There is a deception that many embrace when bad things happen. When cancer is found some call it God's will. When an earthquake or tsunami kills thousands it is called an act of God. When prayers are not answered people give up thinking that it is not God's desire to give good things. It is important that we understand this correctly because it will affect our relationship to God and how we interact with him in prayer.
Jesus communicates to us that the Father is full of good gifts for His children and that it is our role in the relationship to continually ask, seek and knock that we might obtain those good gifts. It is also our role to trust the character of our Father with our requests and know that it is His desire to give us good things that we need and not simply crave. And that is where is gets a bit dicey - when we do not receive what we think we need.
I trust you Lord to discern what are the good gifts. Open my eyes to see them.