" '—All You Zombies—' " is a science fiction short story by Robert A. Heinlein. It was written in one day, July 11, 1958, and first published in the March 1959 issue of Fantasy and Science Fiction magazine after being rejected by Playboy.
The story involves a number of paradoxes caused by time travel. In 1980, it was nominated for the Balrog Award for short fiction.
"'—All You Zombies—'" further develops themes explored by the author in a previous work: "By His Bootstraps", published some 18 years earlier. Some of the same elements also appear later in The Cat Who Walks Through Walls (1985), including the Circle of Ouroboros and the Temporal Corps.-wiki source link