Starting from the Top(Masechet Shabbat Daf פח. Perek 9 Siman 77)
(condensed from Ein Ayah, Shabbat 9:77)
Gemara: “Like a tapuach (which may or may not be an apple tree, and it is not clear which variety) among the trees of the forest, so is my beloved among the young men …” (Shir Hashirim 2:3). Why is Israel compared to an apple tree? It is to teach you that just as an apple tree has its fruit begin to grow before its leaves, so too Israel said “we will do” before “we will hear.”
Ein Ayah: Lower levels in the realm of the physical and spiritual are arranged opposite the higher levels in two manners.
Sometimes higher levels develop through the lower levels, which requires the latter to exist before the former. There are also times that the higher levels appear from the fundamental light, without need to be preceded by the more basic levels. Even in that case, the lower levels are important, and they come along and protect and strengthen the higher levels and allow for connections between practical life and the higher levels.
Proper actions make up the upper portion of the spiritual apparatus and are the manifestation of the Torah within life, leaving its insignia of sanctity on the world. It is not that the actions remind us of some idea to recognize and remember. Rather, proper actions are the high content according to the way Hashem set the world. They become partners in Creation and improve existence. This is the special ability Israel was given by receiving a Torah full of holy actions that exceed any halachic or moral ideas alone.
The higher “fruit” do not come from the levels beneath them, even the highest preparatory level, which is hearing. This is the idea of the fruit coming before the leaves. From the idea of basing the existence on the source of the life of the world, there also flows a light of wisdom that includes hearing and listening. This adorns, strengthens, and broadens the revelation of the higher level of action, even though they come afterward. That is how Israel resembles the apple tree.