Old Testament readings use the Septuagint , the Scripture the apostles quoted. Masoretic numbering shown for reference.Learn why
LXX

Genesis 2:16

And the Lord God gave a charge to Adam, saying, Of every tree which is in the garden thou mayest freely eat,

Read in other translations