Job portrays God as a tyrannical ruler. He sends his plagues to destroy both the guilty and the innocent, and then he laughs at the innocent when they are distressed about his ways.
This verse has been called the harshest verse in the whole book. Job makes unjustifiable statements about God, and later he would repent in dust and ashes
(Job 42:6). Before condemning him, however, we should bear in mind the exceptional intensity of his suffering. Here is a wreck of a man defending his last possession: his righteous innocence.
23 When disaster brings sudden death, he mocks at the calamity of the innocent.