http://en.wikipedia.org/wiki/Job:_A_Comedy_of_JusticePlot summary
The story examines religion through the eyes of Alex, a Christian political activist who is corrupted by Margrethe, a Danish Norse cruise ship hostess — and who loves every minute of it. Enduring a shipwreck, an earthquake, and a series of world-changes brought about by Loki (with Jehovah's permission), Alex and Marga work their way from Mexico back to Kansas as dishwasher and waitress.
Whenever they manage to make some stake, an inconveniently timed change into a new alternate reality throws them off their stride (once, the money they earned is left behind in another reality; in another case, the paper money earned in a Mexico which is an empire is worthless in another Mexico which is a republic). These repeated misfortunes, clearly effected by some malevolent entity, make the hero identify with the Biblical Job.
On the way they unknowingly enjoy the Texas hospitality of Satan himself, but as they near their destination they are separated by the Rapture — Margrethe worships Odin, and pagans do not go to Heaven. Finding that the reward for his faith, eternity as promised in the Revelation, is worthless without her, Alex's journey through timeless space in search of his lost lady takes him to Hell and beyond.
Heinlein's vivid depiction of a Heaven ruled by snotty angels and a Hell where everyone has a wonderful, or at least productive, time — with Mary Magdalene shuttling breezily between both places — is a satire on American evangelical Christianity. It owes much to Mark Twain's Captain Stormfield's Visit to Heaven.