Melachim I / I Kings 6:7 · Drash
וְהַבַּיִת בְּהִבָּנֹתוֹ אֶבֶן־שְׁלֵמָה מַסָּע נִבְנָה וּמַקָּבוֹת וְהַגַּרְזֶן כָּל־כְּלִי בַרְזֶל לֹא־נִשְׁמַע בַּבַּיִת בְּהִבָּנֹתוֹ׃
And the house, when it was built, was built of whole stone brought ready. No hammer, no axe, no tool of iron was heard in the house while it was being built.
Drash דְּרָשׁ
The house that built itself
You prepare a great task for a long time, and at some point it starts going by itself, as if someone helps. The midrash says this is how it was with the Mishkan and the Temple.
Shemot Rabbah: the craftsmen made the Mishkan but could not set it up, and brought the parts to Moshe (Moses). The Mishkan stood by itself, by a miracle. So with the Temple of Shlomo (Solomon): "when it was built", it built itself. The Talmud: Shlomo asked the sages how to build without iron, and they named the shamir, with which Moshe cut the stones of the ephod.
How Shemot Rabbah and Talmud, Gittin explain it
Shemot Rabbah And the house, when it was built
How many wise men were there, and they came to Moshe because they could not set it up?! But Shlomo said: "Many daughters have done valiantly, but you surpass them all" (Mishlei / Proverbs 31:29): for Moshe was above all. "But you surpass them all". Why? Because they made the Mishkan and did not know how to set it up. What did they do? Each took his work, and they came to Moshe and said: here are the boards, here are the bars. When Moshe saw them, at once the holy spirit rested on him, and he set it up. And do not say that Moshe set it up: miracles were done in the Mishkan and it stood by itself, as it says: "the Mishkan was set up" (Shemot / Exodus 40:17).
And if you wonder at this, here is Shlomo: when he built the Temple, the Temple built itself. Rav Huna said in the name of Rabbi Yose: everything helps him. When he built the House of the Almighty, the creatures and the spirits helped. From where do we know? For it is written: "And the house, when it was built, was built of whole stone, brought, and no hammer, no axe, no tool of iron was heard in the house while it was being built" (Melachim I / I Kings 6:7): it built itself. So it was built by a miracle. And likewise, when the Mishkan was set up, it stood by a miracle. That is what is written: "And they brought the Mishkan" (Shemot / Exodus 39:33).
Talmud, Gittin And the house, when it was built, of whole stone
The Master said: here they translated "shiddah and shiddot" (Kohelet / Ecclesiastes 2:8) as "a demon and demonesses". What did he need them for? As it is written: "And the house, when it was built, was built of whole stone, brought" (Melachim I / I Kings 6:7). He said to the sages: how shall I do this? They said to him: there is the shamir, which Moshe brought for the stones of the ephod.
Takeaway
The verse "Many daughters have done valiantly" is from the hymn to the woman of valor (Mishlei / Proverbs 31:10–31). The midrash reads it about Moshe.
It says "the Mishkan was set up" (הוּקַם), without saying who set it up (Shemot / Exodus 40:17). From this the midrash learns that it stood by itself.
Further on, the Talmud tells how Shlomo got the shamir through Ashmedai, king of the demons (Gittin 68a–b).
The shamir was needed because the stones of the ephod could not be written on with ink, they were cut (Sotah 48b).