David HaMelech (King David)
David HaMelech, the second king of Israel, was the first to attempt to build the Beit HaMikdash (Temple) in “המקום אשר יבחר ה”- “the place which God will choose” (Devarim 12:5), on Har HaMoriah (Mount Moriah) in Yerushalayim (Jerusalem).
After finally transporting the Aron HaBrit (Ark of the Covenant) to Har HaMoriah, David exclaims to Natan HaNavi (Nathan the Prophet): “ראה נא אנכי יושב בבית ארזים וארון האלוקים ישב בתוך היריעה” - “See now, I dwell in a house of cedar, but the ark of God dwells within curtains” (Shmuel Bet 7:2). However, that night Natan receives a nevuah (prophecy) in which Hashem (God) tells Natan to tell David that David will not be the one to build the Beit HaMikdash. Rather, his son will be the one to ultimately build the house for God.
Despite the fact that David will not be the one to build the Beit HaMikdash, he merits to, physically and spiritually, set the foundations for its building. He picks the exact location of the Mikdash, prepares detailed plans for the building, buys the plot of land on which the Mikdash would stand, brings the Aron HaBrit to Har HaMoriah, builds the Mizbeach (altar), specifies the mizbeach as the location of the bringing of korbanot (offerings) to Hashem in exclusion of other places, and prepares the physical foundations of the Mikdash.