The Teachings of Silvanus, a gnostic document, dated around 150AD:
For God does not need to put any man to the test. He knows all things before they happen, and he knows the hidden things of the heart. They are all revealed and found wanting in his presence. Let no one ever say that God is ignorant. For it is not right to place the Creator of every creature in ignorance. For even things which are in darkness are before him like (things in) the light.