One of the reasons that the Book of Job is in the Bible (not the primary reason, but an important reason nonetheless) is to explore the question of how we should relate to friends and loved ones who are hurting.
The first two chapters of the Book of Job provide the narrative detail that serves as the context for the rest of the discussion that follows.