And We said, “”O Adam! you and your wife, dwell in the garden, and eat from it freely (from) wherever you will, but do not go near this tree, because you will become one of those who are unjust.””
Now Hawwa (PBH) comes into the picture and Adam (PBH) is asked to live with her in the garden, freely eating the produce of the garden from wherever they liked. But both are warned not to go near a particular tree, the reason given for this prohibition is that if they eat from it they will become unjust. Adam and Hawwa (PBT) appear to have been either living elsewhere before the angels bowed down before Adam (PBT) because now they are asked to live in the garden with instructions not to eat from a particular tree Or they were living in the garden earlier too but without any prohibition.

