Did he just see light at the end of the tunnel? Or was he hallucinating? It was probably more of the latter.
He had already gone for days without sustenance, and his mortal body was slowly wasting away. No matter how powerful he was spiritually, under the bounds of the mortal body, he was just like everyone else, susceptible to pain and death. He was already hearing voices in his head, whispering things that he dare not repeat to save his own soul. Already driven to the very edge of desperation, he had begun to despair.