He had been (Thinking? Praying...
He had been (Thinking? Praying?) It was all the same thing.