Examples of science fiction stories that include superintelligences or godlike entities 

“The Last Question” by Isaac Asimov

Humanity produces a godlike descendent that is spread throughout the universe, in parallel with a succession of computers called Multivac which eventually fuse with humanity.  As the universe dies out AC the ultimate Multivac pronounces “LET THERE BE LIGHT!” And there was light.

“Childhood’s End” by  Arthur C. Clarke

Aliens serving a vast cosmic intelligence called the Overmind arrive in spacecraft and begin to supervise and sometimes to intervene in human affairs. The minds of human children merge into a single consciousness in preparation for joining the Overmind and the disappearance of the material planet Earth.

“Mr g: A Novel About the Creation” by Alan Lightman

God (Mr g) is disturbed by his aunt and uncle Penelope and Deva with whom he lives and decides by trial and error to create a universe with intelligent humanity. Mr g is omnipotent but not omniscient and is challenged by a rival to exempt humans from rational laws.

“Star Maker” by Olaf Stapledon

The mind of the human narrator merges with those of inhabitants of other planets to form a cosmic mind which meets the Star Maker a creator of Universes including the narrator’s universe, and other universes like hell and heaven.