David assembled all the princes of Israel, the princes of the tribes, and the captains of the companies who served the king by division, and the captains of thousands, and the captains of hundreds, and the rulers over all the substance and possessions of the king and of his sons, with the officers, and the mighty men, even all the mighty men of valor, to Jerusalem.
Solomon's temple, in every real sense, was the project conceived and achieved by David.  It was in the same category as the monarchy, used and overruled by God toward the achievement of his eternal purpose; but neither of them, in the ultimate sense, was actually the will of God, except in the sense that he permitted them.