Melachim I / I Kings 6:7 · Pshat
וְהַבַּיִת בְּהִבָּנֹתוֹ אֶבֶן־שְׁלֵמָה מַסָּע נִבְנָה וּמַקָּבוֹת וְהַגַּרְזֶן כָּל־כְּלִי בַרְזֶל לֹא־נִשְׁמַע בַּבַּיִת בְּהִבָּנֹתוֹ׃
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.
Pshat פְּשָׁט
Silence on the building site
You walk past a building site and hear the din: hammers knock, a saw screeches. And here the most important house of the land is being built, and the site is quiet.
Rashi: the stones were brought from the mountain already finished, worked by the shamir, and laid in the wall as they were, without iron tools. Metzudat David: every stone was hewn on the mountain whole and to the right size. At the site the stones were only laid, so neither hammer nor axe was heard there.
How Rashi and Metzudat David explain it
Rashi And the house, when it was built, of whole stone, brought
As it was brought from the mountain, worked by the shamir, so, as it came from there, it was set in the wall of the building. And it was not hewn with iron tools. As for the hewn stones mentioned above, it is a dispute in tractate Sotah (Sotah 48b).
Metzudat David And the house, when it was built
The verse explains why he made the recesses and did not build the way builders build. It says that the house, in the place where it was built, was built of whole stone, as it was brought from the mountain. For he did not want to bring anything unfinished to the building site. So every stone was hewn on the mountain whole and to the desired size, and no more work was done on them at the site. And that is why no sound of hammers and axe was heard there: nothing was done there except laying alone. And had they built the way builders build, making holes, they would have had to work at the building site.
Takeaway
The shamir is a creature that cuts stone. The Mishnah names it among the things created on the eve of the first Shabbat at twilight (Pirkei Avot 5:6).
The recesses (מִגְרָעוֹת) were made on the outside of the wall, so the beams of the side rooms would not go into the walls of the house (Melachim I / I Kings 6:6).
Above it says that Shlomo (Solomon) had "great stones, costly stones, hewn stones" quarried (Melachim I / I Kings 5:31).
With the shamir the names of the tribes were also cut into the stones of the ephod, a garment of the high priest (Sotah 48b).