A GNOSTIC TEXT, written in Coptic and likely translated from Greek, but not from the the famous Nag Hammadi haul. A western collector got hold of it way back in 1773. How it survived to that point despite the animosity towards the Gnostics no one knows, but is likely an interesting story..
Compared to the Nag Hammadi texts, it's quite long--hundreds of pages in this edition. The title might translate "Faith Wisdom," or "Wisdom's Faith," or some variation along those lines.
In the text, Jesus is in a long conversation with his disciples (including Mary his mother, Mary Magdalene, and Martha) explaining what he saw in the other realm before he rose from the dead.
If I followed this exposition correctly--and I am not at all sure that I did--some powerful but rebellious element of the great one-ness broke away and created the material world, hoping to be worshipped as creator by that world. The rebellious element is called Authades in some parts of the text, but in some other parts is Sabaoth the Adamas. He is keeping a number of other beings (also his creations, perhaps) in thrall, including Sophia (that is, Wisdom). But Jesus suggests Sophia will be able to free herself and return to the great one-ness.
And so will the disciples, if they straighten up and live right rather than indulging their material bodies.
Jesus, I think, acts as an intermediary between Authades' unfortunate creations (and the creations of his creations, which would include human beings) and the great one-ness. Jesus can show us the way to return to the great immaterial one-ness, if we shake off our illusions (or take the red pill, I guess).
In a way, in this scenario, God the Creator is actually a breakaway Lucifer figure who is hoping we will believe he is the ultimate reality, and has suborned Wisdom herself to that end...so as to gaslight us all, shall we say. But Jesus is revealing the truth about him so we can free ourselves from his illusions and return to our true home, the great one-ness.
I kept wondering--did William Blake somehow get a hold of this?
Also of note: Mary Magdalene is obviously the top student in the class. Whenever Jesus poses a question, she has the right answer immediately, and Jesus always congratulates her on getting things right. Peter complains at a couple of points that the women are getting to do all the talking, so Jesus lets him get a couple of answers in, but the overall message is clear: Mary Magdalene is the one who really gets it.