Job 42:8 Therefore take unto you now seven bullocks and seven rams, and go to my servant Job, and offer up for yourselves a burnt offering; and my servant Job shall pray for you: for him will I accept: lest I deal with you after your folly, in that ye have not spoken of me the thing which is right, like my servant Job.
God has reprimanded Job. Job has apologized and repented. God now tells the others that they were wrong. He tells them that they will need to make an offering. He tells them that they have been in folly or foolishness. They didn’t say what was right.
God says that Job did say what was right. Job is to now pray for them. God will listen to Job pray.
Reading the book of Job can be difficult because you might not know till you get to the end of the story who is right and who is wrong.