Read his mind...

"There are no atheists in foxholes" quote comes to mind here as he's praying to the Divine promising that he'll go to Church forever afterwards if he gets out of the hole.

It's these little touches that make me love Larian dialogue.