The Lord gave Solomon wisdom - It seems to be implied that Solomon‘s divine gift of wisdom enabled him to make such favorable arrangements with Hiram.
Matthew Henry
Concise Bible Commentary
The temple was chiefly built by the riches and labour of Gentiles, which typified their being called into the church. Solomon commanded, and they brought costly stones for the foundation. Christ, who is laid for a Foundation, is a chosen and precious Stone. We should lay our foundation firm, and bestow most pains on that part of our religion which lies out of the sight of men. And happy those who, as lively stones, are built up a spiritual house, for a habitation of God through the Spirit. Who among us will build in the house of the Lord?
SDA Bible Commentary (limited)
Volume 1-7
12. Wisdom. Wisdom is needed in all the affairs of life, in religion as well as business, in government as well as agriculture, in the home as well as the school. Wisdom promotes contentment and prosperity, happiness and godliness. True wisdom comes from God and leads to God.