What he did know was that God told him not to eat from the tree.
سألهم الله منكرا إياهم الأكل من الشجرة التى حرمها عليهم.