As we study the book of Job, we find he is a man singled out by God himself as blameless and upright.
God allowed Satan to attack Job. In one day, Job lost his family and his wealth. Then Satan afflicted Job with agonizing open sores, but Job remained faithful.
When three of his friends came to visit, Job told them he wished he had died at birth. They tried to convince him he was being punished because of some hidden sin, but Job was clear there was no hidden sin.