If the Allah of Islam did not know this fact, then he would not be very knowledgeable, and certainly not all-knowing.
Kama Allah wa uislam hakujua ukweli huu, wasingelikuwa na ufahamu na hakika wasingekuwa na uwezo wa kujua kila kitu.