“The Book of Job has no interest in praising mystery without restraint. All biblical writers insist that to fear the Lord ultimately leads to abundant life. If this were not so, to fear the Lord would be stupid and masochistic. The book does not disown all forms of retribution; rather, it disowns simplistic, mathematically precise, and instant application of the doctrine of retribution. It categorically rejects any formula that affirms that the righteous always prosper and the wicked are always destroyed. There may be other reasons for suffering; rewards (of blessing or of destruction) may be long delayed; knowledge of God is its own reward.” (D.A. Carson)
For more on the subject, please visit the Biblical Theology page.