And Hashem said, “Let the earth be covered with lawns of seed bearing grass, fruit trees of every kind on earth that bear fruit of its own type with the seed in it.” And it was so. (Breishis 1/11)
It is written in the Gemara Chulin (60a) that R. Channa ben Papa explained that the possuk, (Tehillim 514/31), "May the glory of Hashem last forever Hashem will rejoice in His works." was said by the Malach of the Universe, the angel who Hashem assigned to manage this world, at the time when HaKadosh Baruch Hu commanded the trees to bear fruits "of their own type" and not to mix with other trees. At that time the grasses also concluded that they should also not mix with other species with the following logic; If Hashem commanded the trees to reproduce only "their own type", who are large and distinct from each other and therefore their nature is to grow separately, then certainly (kal vechomer) we plants, that our nature is to grow intermingled, should certainly not produce seeds other than our own type!
When the Malach of the Universe heard the grasses he said, "May the glory of Hashem last forever; Let Hashem rejoice in His works."
Zera Shimshon asks, what made the Malach of the Universe so happy when he heard that the plants learned from the trees to reproduce “only its own type” to such a degree that He sang praise to Hashem?
Zera Shimshon answers in light of the Medrash (Yalkut Shemoni Bereishis remez 13) when Hashem created the world Hashem asked the Torah (which was created before Hashem created the world) what was its opinion about creating man? The Torah objected because people are full of sin and their actions will anger Hashem which will most definitely cause that Hashem will destroy them! The Medrash continues that Hashem replied to the Torah that He has a tremendous amount of patience and there is no need to worry that Hashem will destroy the world.
According to this, explains Zera Shimshon, when the Malach of the World heard that Hashem was about to create man he became frightened. He was afraid that the whole world, which is his responsibility to keep going, will soon be destroyed.
However, when he saw that the grasses went against their natural tendency of mixing with other species in order to fulfill the will of Hashem, He realized that people can also go against their own natural tendencies in order to do Hashem's will and therefore it is no more certain that Hashem will have to destroy the world. This realization caused him to sing praise!
Zera Shimshon concludes that there is a strong allusion to this idea in this possuk. It is written "May the glory of Hashem last forever; Hashem WILL rejoice in His works." which implies that when this praise was said Hashem did not yet rejoice in His works but will only rejoice in the future. In other words, at the time of creation Hashem didn't have a reason to rejoice because the natural inclination of man is not too virtuous. It is only after man will overcome these tendencies is there reason for Hashem to rejoice.