1 Chronicles17:23

The prayer belongs to the time when David first conceived the design of building a house worthy of the divine majesty and opened his mind about it to the prophet Nathan. Although God accepted David's good intentions, He refused him the honor of building the temple. The laying of its foundation, the completing of it, and the dedicating of it passed to Solomon his son.