This is taken from the Gospel of Basilides which was a fraudulent gospel written in the 300s
Indeed. The whole thing is plagiarized from beginning to end.