 No matters are hidden from Him nor are secrets withheld from Him. Amen. He has knowledge of all that has occurred and all which has yet to occur. And this displays beautifully that God is transcendent. He is the absolute opposite of creation. Within creation you have the creation of time and space. But God transcends time and space. And this is how He has the knowledge of what has been and what will be because within God there is no time. Time is an illusion for us mere mortals.