Genesis 3:22
ESV - 22 Then the Lord God said, "Behold, the man has become like one of us in knowing good and evil. Now, lest he reach out his hand and take also of the tree of life and eat, and live forever -
For follow-up discussion and general commentary on the topic. Comments are sorted chronologically.
Satan had eaten from the tree before man, that's how God knew what the tree would do, so he forbade man to eat from it .