Job had a few "friends" that came to "encourage" him while he was suffering. They told him things like "you have sin in your life and God is punishing you." Or "you have served God and this is what you get?"
Maybe you have been in the same situation Job was in. I want to give you some advice, which is found in Job 27: 2-6.
Don't lose your integrity! Don't allow the trials of life to make you into a bitter or resentful person. Instead allow this time of trials to strengthen your resolve to be a man or woman of God.