From The Community Rule:
From the God of knowledge stems all there is and all there shall be. Before they existed he made all their plans and when they came into being they will execute all their works in compliance with his instructions, according to his glorious design without altering anything. In his hand are the laws of all things and he supports them in all their needs. He created man to rule the world and placed within him two spirits so that he would walk with them until the moment of his visitation: they are the spirits of truth and of deceit. In the hand of the Prince of Lights is dominion over all the sons of justice; they walk on paths of light. And in the hand of the Angel of Darkness is total dominion over the sons of deceit; they walk on paths of darkness. Due to the Angel of Darkness all the sons of justice stray, and all their sins, their iniquities, their failings and their mutinous deeds are under his dominion in compliance with the mysteries of God, until his moment; and all their punishments and their periods of grief are caused by the dominion of his enmity; and all the spirits of their lot cause the sons of light to fall. However, the God of Israel and the angel of his truth assist all the sons of light. He created the spirits of light and of darkness and on them established all his deeds [on their p]aths all his labors ‘and on their paths [all] his [labors.]”. God loved one of them for all eternal ages and in all his deeds he takes pleasure for ever; of the other one he detests his advice and hates all his paths forever.
In agreement with man’s birthright in justice and in truth, so he abhors injustice; and according to his share in the lot of injustice he acts irreverently in it and abhors the truth. For God has sorted them into equal parts until the appointed end and the new creation. He knows the result of his deeds for all times [everlas]ting and has given them as a legacy to the sons of men so that they know good [and evil], so they decide the lot of every living being in compliance with the spirit there is in him [at the time of] the visitation.