1 Kings 8:16-26

16 'Since the day that I brought my people Israel out of Egypt, I chose no city in all the tribes of Israel in which to build a house, that my name might be there; but I chose David to be over my people Israel.'
17 Now it was in the heart of David my father to build a house for the name of the LORD, the God of Israel.
18 But the LORD said to David my father, 'Whereas it was in your heart to build a house for my name, you did well that it was in your heart;
19 nevertheless you shall not build the house, but your son who shall be born to you shall build the house for my name.'
20 Now the LORD has fulfilled his promise which he made; for I have risen in the place of David my father, and sit on the throne of Israel, as the LORD promised, and I have built the house for the name of the LORD, the God of Israel.
21 And there I have provided a place for the ark, in which is the covenant of the LORD which he made with our fathers, when he brought them out of the land of Egypt."
22 Then Solomon stood before the altar of the LORD in the presence of all the assembly of Israel, and spread forth his hands toward heaven;
23 and said, "O LORD, God of Israel, there is no God like thee, in heaven above or on earth beneath, keeping covenant and showing steadfast love to thy servants who walk before thee with all their heart;
24 who hast kept with thy servant David my father what thou didst declare to him; yea, thou didst speak with thy mouth, and with thy hand hast fulfilled it this day.
25 Now therefore, O LORD, God of Israel, keep with thy servant David my father what thou hast promised him, saying, 'There shall never fail you a man before me to sit upon the throne of Israel, if only your sons take heed to their way, to walk before me as you have walked before me.'
26 Now therefore, O God of Israel, let thy word be confirmed, which thou hast spoken to thy servant David my father.
Revised Standard Version of the Bible, copyright 1952 [2nd edition, 1971] by the Division of Christian Education of the National Council of the Churches of Christ in the United States of America. Used by permission. All rights reserved.