I often see people say that we aren't supposed to question when something bad happens to us. I don't understand it because we all go through pain and sometimes our inevitable response is to ask why. If you are going through a particularly rough trial or a difficult loss, people seem to think that you can't ask, "Why me?" or "Why is this happening?"
But you know what, it's perfectly okay to ask why. In Psalms 22:1, David asks "My God, My God, why have you forsaken me? Far from my deliverance are the words of my groaning." In fact if you look at a lot of the Psalms they ask similar questions. They ask why the writer is in a given circumstance. They ask if God is still with them. Even Jesus Himself asked "My God, My God, Why have you forsaken me?" He asked if the cup could pass from him as well or to paraphrase do I really have to endure this? Isn't there another way?
It is fine to wonder if God is with you or to ask him why you're going through something. The line gets crossed if you instead turn from questioning why things are happening to resentment, blame or anger. Those are the boundaries that you shouldn't step into. It's a perfectly human and natural response to know that God has a plan that we cannot see and to wonder why.