Bereshit / Genesis 1:11 · Pshat
וַיֹּאמֶר אֱלֹהִים תַּדְשֵׁא הָאָרֶץ דֶּשֶׁא עֵשֶׂב מַזְרִיעַ זֶרַע עֵץ פְּרִי עֹשֶׂה פְּרִי לְמִינוֹ אֲשֶׁר זַרְעוֹ־בוֹ עַל־הָאָרֶץ וַיְהִי־כֵן׃
And the Almighty said: "Let the earth be covered with greenery: grass yielding seed, the tree-fruit yielding fruit after its kind, whose seed is in it, on the earth." And it was so.
Pshat פְּשָׁט
The tree that was meant to be fruit
You ask for a job to be done the way you need it, and it is done differently, and with the best intentions too. Who is right here? In our verse God gives the earth a very precise command.
The earth was told to grow the "tree-fruit", Rashi explains: so that the tree itself would taste like the fruit. It grew a tree that only yields fruit, and when man was cursed for his sin, the earth was cursed along with him. Chizkuni adds: it meant well, but deciding for the Creator was not its business. And Sforno notes: each kind yields fruit of its own kind, and a cross of two kinds has no offspring.
How Rashi, Chizkuni, and Sforno explain it
Rashi Tree-fruit
That the taste of the tree should be like the taste of the fruit. But it did not do so, rather "the earth brought forth a tree yielding fruit" (Bereshit / Genesis 1:12): a tree that yields fruit, and not a tree that is itself fruit. Therefore, when man was cursed for his sin, it too was called to account for its sin, and it was cursed.
Chizkuni Tree-fruit
But it did not do so. Yet the greenery it brought forth "after their kinds", more than it was commanded. So it meant well: for many trees would be lost if the tree itself were like the fruit. And still, when man was cursed for his sin, it too was called to account, and it was cursed. For what business does it have with the secrets of the Merciful One? The hand of the Eternal is not short.
Sforno The tree-fruit yielding fruit after its kind
For a cross of two kinds has no offspring.
And it was so.
So it remained, nothing taken away and nothing added: if a plant crossed from two kinds should ever appear, it will have no offspring.
Takeaway
In the command it says "tree-fruit" (עֵץ פְּרִי) (Bereshit / Genesis 1:11), and in the account of what grew, "a tree yielding fruit" (עֵץ עֹשֶׂה פְּרִי) (Bereshit / Genesis 1:12). From this difference Rashi concludes that the earth did not fulfil the command. His words come from the midrash (Bereshit Rabbah 5:9), shown in Drash.
The curse of the earth: "Cursed is the ground because of you" (Bereshit / Genesis 3:17). Rashi explains there: it will grow cursed things for man: flies, fleas and ants (Rashi on Bereshit / Genesis 3:17).
In the command about grass there are no words "after its kind", they are said only of the tree, yet in what grew the grass too is "after its kind" (Bereshit / Genesis 1:12). The Talmud tells: the grass heard this word about the trees and decided on its own to grow each after its kind (Chullin 60a).
"What business do you have with the secrets of the Merciful One? What you were commanded, you should have done, and what pleases the Holy One, blessed is He, let Him do." So the prophet Yeshayahu (Isaiah) said to King Chizkiyahu (Hezekiah), who did not want children because he foresaw that they would turn out wicked (Berakhot 10a). Chizkuni says these words about the earth.
"Is the hand of the Eternal short?" God asked Moshe (Moses) when He promised the people meat in the wilderness (Bamidbar / Numbers 11:23). With similar words Chizkuni ends his comment about the earth.
From the same words "after its kind" Ramban derives the ban on sowing a mixture of different kinds (כִּלְאַיִם): whoever sows so argues with the power placed in the world at creation (Ramban on Bereshit / Genesis 1:11).