From the gnostic (esoteric) gospel of Thomas:
Jesus said to them, “When you make the two into one, and when you make the inner like the outer and the outer like the inner, and the upper like the lower, and when you make male and female into a single one, so that the male will not be male nor the female be female, when you make eyes in place of an eye, a hand in place of a hand, a foot in place of a foot, an image in place of an image, then you will enter [the kingdom].” Verse 22.
Jesus said, “This earth and the planets surrounding it will pass away, and everything will become new. Consider this: In the beginning, you were organized as one body, but when you became two, the illusion of separateness entered the physical plane. Now you are many, and this illusion abounds. Listen to what I’m saying! You must become a solitary person before me, if you want to dwell on the new planets and the new earth which I will create. Those who are enlightened will understand what I’m saying.”