R. Akiva says: If it is written "with all your soul," how much more so, "with all your might" (meodecha)! (The meaning is:) For every measure (middah [suggested by] "meodecha") that He metes out to you, whether for good or for evil, (thank Him). And thus did David say (Psalms 116:3-4) "Affliction and sorrow did I find and in the name of the L-rd I called … (13) "I shall lift up the cup of salvation, and in the name of the L-rd will I call."
And thus did Iyyov say: (Iyyov 1:21) "The L-rd has given and the L-rd has taken — blessed be the name of the L-rd." (Bless Him) both for the measure of good and for the measure of evil. What did his wife say to him? (Ibid. 2:9) "Do you still persist in your integrity? — blaspheme G-d and die." And he answered: "You speak as one of the coarse women. Shall we accept (only) the good of G-d and not the evil?"
The men of the generation of the flood were degenerate by reason of the good (bestowed upon them), and when punishment came upon them, they accepted it perforce. The men of Sodom and Amorah were degenerate by reason of the good (bestowed upon them), and when punishment came upon them they accepted it perforce. Now does this not follow a fortiori — If one who is degenerate in good accedes in evil, then one who accedes in good — how much more so should he accede in punishment! Thus, Iyyov to his wife: "You speak as one of the coarse women. Shall we accept the good of G-d and not the evil"?