The command to build the Mishkan, and Bnei Yisrael’s donation of materials for its construction, took place immediately after the giving of the Torah, before the episode of the Golden Calf, according to one opinion in the Zohar. Because the Golden Calf was made from molten earrings rather than from the plentiful supply of gold that Bnei Yisrael took from the Egyptians, we can deduce that they had already given most of their gold to the Mishkan.
Per this chronology of events, when G-d commanded Bnei Yisrael to build the Mishkan they were in their most elevated, pure state, having just been spiritually cleansed at Mount Sinai.
Yet at that very point G-d instructed them to build a physical Mishkan, demonstrating that use of our mundane possessions to create a home for G-d is man’s highest calling, even if he is already perfect in all other areas.
Moreover, according to this opinion, had Bnei Yisrael not already consecrated the bulk of their gold for a higher purpose—for use in the Mishkan—all that gold would have contributed toward their most grievous sin, the Golden Calf. This teaches us that only by wholly dedicating the material aspects of our lives to the goal of creating a home for G-d can we ensure that we will remain anchored in our righteousness.
—Likkutei Sichos, vol. 6, pp. 153–155