Heinlein wrote a book he titled, JOB: A Comedy of Justice. Here's a memorable quote:
Theology is never any help; it is searching in a dark cellar at midnight for a black cat that isn't there. Theologians can persuade themselves of anything.
Robert A. Heinlein, JOB: A Comedy of Justice, 1984
There are some interesting speculations in that book, which does replay the Job theme.
A jolly good demonstration that Heinlein is not immune to his own argument.....