Job is a wealthy man living in a land called Uz with his large family and extensive flocks. He is “blameless” and “upright,” always careful to avoid doing evil (1:1). One day, Satan (“the Adversary”) appears before God in heaven. God boasts to Satan about Job’s goodness, but Satan argues that Job is only good because God has blessed him abundantly. Satan challenges God that, if given permission to punish the man, Job will turn and curse God. God allows Satan to torment Job to test this bold claim, but he forbids Satan to take Job’s life in the process.
In the course of one day, Job receives four messages, each bearing separate news that his livestock, servants, and ten children have all died due to marauding invaders or natural catastrophes. Job tears his clothes and shaves his head in mourning, but he still blesses God in his prayers. Satan appears in heaven again, and God grants him another chance to test Job. This time, Job is afflicted with horrible skin sores. His wife encourages him to curse God and to give up and die, but Job refuses, struggling to accept his circumstances.
Quote from: https://www.sparknotes.com/lit/oldtestament/section11/