Psalm 106:32-33 They angered him also at the waters of strife, so that it went ill for Moses for their sakes: Because they provoked his spirit, so that he spake unadvisedly with his lips.
The people responded to their experience of thirst and pain by complaining bitterly against the Lord and against His servant Moses. This action provoked Moses so that he struck the rock instead of obediently speaking to it as the Lord commanded. For this action of anger and unbelief Moses was banished from entering the Promised Land himself. It may have been the people’s fault, but Moses reacted wrongly in frustration to the complaints and unbelief, and he suffered the consequences.
We may cry, beg, and complain to the Lord in time of need, but to carry it further into blame and accusation is sin and unbelief. Then it causes others, like Moses, to sin and blame. The Holy Spirit is grieved when we complain about our lot in life and blame God for it. Complaining never does any good, and it negatively affects other people. It can also lead to unbelief and rebellion, and that will not go well for us. Therefore, we confess our sinfulness and receive forgiveness for Christ’s sake.