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.

See also:

Job Explained
Was God Unfair to Job?
Objection: Job Was a Godly Man, Yet God Let Him Get Sick
Notes on Job 33:19-25