This question already has an answer here:
I've read a short story, probably online, about an atheist who dies, and to his own surprise, is met by God.
The story is told from the perspective of the atheist, who learns that he was chosen because of his personality and way of thinking, and is asked to help finding a solution. In the story, it turns out that although God has complete control and understanding about our universe, there is something even He cannot do: affecting Himself, and His own eternal existence. Being curious about it, (or maybe hinted of God wanting to actually commit suicide, I don't remember), God gives the mission to the atheist to help in unlocking the limits of His own existence.
The atheist eagerly accepts the mission, the story ending with something in the like of it being a hard task to accomplish, but that's not a problem, he has all eternity to do it.