This is derived from ancient texts found in Egypt dating back to 200 ad
"And the Sophia of the Epinoia, being an aeon, conceived a thought from herself and the conception of the invisible Spirit and foreknowledge. She wanted to bring forth a likeness out of herself without the consent of the Spirit, - he had not approved - and without her consort, and without his consideration. And though the person of her maleness had not approved, and she had not found her agreement, and she had thought without the consent of the Spirit and the knowledge of her agreement, (yet) she brought forth. And because of the invincible power which is in her, her thought did not remain idle, and something came out of her which was imperfect and different from her appearance, because she had created it without her consort. And it was dissimilar to the likeness of its mother, for it has another form.
"And when she saw (the consequences of) her desire, it changed into a form of a lion-faced serpent. And its eyes were like lightning fires which flash. She cast it away from her, outside that place, that no one of the immortal ones might see it, for she had created it in ignorance. And she surrounded it with a luminous cloud, and she placed a throne in the middle of the cloud that no one might see it except the holy Spirit who is called the mother of the living. And she called his name Yaltabaoth.