Ezra
1 Chronicles 28:12BSB·traditional attribution

The plans contained everything David had in mind for the courts of the house of the LORD, for all the surrounding rooms, for the treasuries of the house of God and of the dedicated things,

Matthew Henry Presbyterian @wholebiblehenry

As for the general charge that David gave his son to seek God and serve him, the book of the law was, in that, his only rule, and there needed no other; but, in building the temple, David was now to give him three things: - 1. A model of the building, because it was to be such a building as neither he nor his architects ever saw.

Commenting on 1 Chronicles 28:11-21

John Gill Reformed Baptist @doctorgill

By the Spirit of God, who gave him the whole form of the temple, and all things relative to it; just as God showed to Moses the pattern of the tabernacle in the mount; the Targum is, by the spirit of prophecy that was with him.

Jamieson-Fausset-Brown Reformed @jfbcommentary

the pattern of all that he had by the spirit--rather, "with him in spirit"; that is, was floating in his mind.