David replied, “What will I ever do with you and your brother Joab? If Shimei is cursing me because the LORD has told him to, then who are you to tell him to stop?”
Job replied, “Don't talk like a fool! If we accept blessings from God, we must accept trouble as well.” In all that happened, Job never once said anything against God.
When times are good, you should be cheerful; when times are bad, think what it means. God makes them both to keep us from knowing what will happen next.