King David hands over the building plans for the Temple to his son Solomon, passing on a design that goes far beyond a standard architectural blueprint. The primary approach among commentators is that David received these detailed plans through divine inspiration and prophetic vision, which revealed the entire structure of the building [מצודת דוד, רד״ק, ביאור שטיינזלץ]. There are different perspectives on how this prophetic insight was attained. Some suggest David reached this level of inspiration on his own, while others indicate that the plan was developed through the guidance and advice of the prophet Samuel [רד״ק, ביאור שטיינזלץ]. Tradition teaches that when David and Samuel sat together to study the laws of the Temple, they were engaging with the very foundation of the world. During this time, David absorbed knowledge in a brief period that a seasoned student could not master in many years [רש״י].
Taking a more straightforward approach, the spirit guiding David simply reflects his powerful inner desire and deep-seated intention to construct the building [רלב״ג]. From a deeper, more conceptual perspective, the architecture of the Temple and its various rooms symbolize the order of the entire universe and the human mind. Because of this profound connection, the exact pattern of the Temple was inherently imprinted within David's own soul [מלבי״ם].
The plans David delivered included the courtyards of the Temple, specifically the areas used by the priests, as well as the surrounding chambers built around the main sanctuary [רלב״ג]. These chambers were designed to function as two distinct types of treasuries. The first type held the general funds of the Temple, storing the regular donations dedicated to the physical maintenance and repair of the building [רש״י, מצודת דוד]. The second type was reserved for dedicated holy items; these rooms safeguarded the funds used to purchase public sacrifices [מצודת דוד], as well as various sacred objects that had been consecrated and stored away [רלב״ג].