A selection of verses showing that we should ask God to help rather than complain about our problems.
On two occasions, Moses asks God to help when the children of Israel complain about lack of water:
24 The people murmured against Moses, saying, “What shall we drink?” 25 Then he cried to the LORD. The LORD showed him a tree, and he threw it into the waters, and the waters were made sweet. There he made a statute and an ordinance for them, and there he tested them.
2 Therefore the people quarrelled with Moses, and said, “Give us water to drink.”
Moses said to them, “Why do you quarrel with me? Why do you test the LORD?”
3 The people were thirsty for water there; so the people murmured against Moses, and said, “Why have you brought us up out of Egypt, to kill us, our children, and our livestock with thirst?”
4 Moses cried to the LORD, saying, “What shall I do with these people? They are almost ready to stone me.”
In the Psalms God tells us to ask him if we have problems:
15 Call on me in the day of trouble.
I will deliver you, and you will honour me.”
The Psalmist tells us to ask God if we have problems:
22 Cast your burden on the LORD and he will sustain you.
He will never allow the righteous to be moved.
The Lord Jesus tells us that God is aware of our needs and that God will provide if we seek his Kingdom:
31 “Therefore don’t be anxious, saying, ‘What will we eat?’, ‘What will we drink?’ or, ‘With what will we be clothed?’ 32 For the Gentiles seek after all these things; for your heavenly Father knows that you need all these things. 33 But seek first God’s Kingdom, and his righteousness; and all these things will be given to you as well.