In the prologue of the Book of Job, Chance is referred to as the result of a wager between God and Satan, who is described as one of the sons of God. In the dialogue between Job and his friends, bad luck is viewed as a consequence of bad behavior, while good luck is the result of good behavior.