Apocalypse of Adam
The Four Hundred Thousand
Then others from the seed of Ham and Japheth come, four hundred thousand, and enter another land and stay with those people who came from the great eternal knowledge. The shadow of their power protects those with them from everything evil and every filthy desire.
Then the seed of Ham and Japheth forms twelve kingdoms, and their other seed enters into the kingdom of other people.
. . . they take counsel . . . aeons . . . that are dead . . . the great aeons of incorruptibility. And they go to their god Sakla. They go in to the powers, accusing the great ones who are in their glory.
They say to Sakla, "What is the power of these people who stood in your presence, who were taken from the seed of Ham and Japheth, who number four hundred thousand? They were received into another realm from which they came, and they overturned all the glory of your power and the dominion of your hand. The seed of Noah through his sons has done your will, and so have all the powers in the realms over which your might rules. Both those people and those who reside in their glory have not done your will. But they have turned aside your whole throng."