James 5:11:

Behold, we count them happy which endure. Ye have heard of the patience of Job, and have seen the end of the Lord; that the Lord is very pitiful, and of tender mercy.

See also:

Objection: Job Was a Godly Man, Yet God Let Him Get Sick
Notes on Job 2:4-7