Some strange kind of religiousity we can find in much of Lem's Works. In "Pamietnik" (in the German Version its written under the german title, I think it should be the original polish) he describe what an allmight may think.
He relates it in the end, but I think to be patient with the readers, while he put the allmight into an moon, in which a machine growed.
The A.I. created his own little worlds inside.
Funny, see God playing.
In "Guest in Space", he let, in the end, our main-person, and some other on a meteor, to build a space-station.
It was not really necessary, because the planet, they aimed for contact was not far.
But they did it, and it was another ruin, a mark for the exploration of space.
Somewhere else he led a spacestation, full with frosted dead cold-war-americans flow through space.
The space-travellers found them, at a time, where wars only knowed by books.
Some other symbol.
Religious in some strange kind, maybe the endlessness of the universe is his ambivalence of god.
But thats only thought-plays, no one knows it, just Lem himself.