1 Chronicles 28:2-10

2 Then David the king stood up on his feet, and said, Hear me, my brothers, and my people: As for me, I had in my heart to build an house of rest for the ark of the covenant of the LORD, and for the footstool of our God, and had made ready for the building:

3 But God said to me, You shall not build an house for my name, because you have been a man of war, and have shed blood.

4 However, the LORD God of Israel chose me before all the house of my father to be king over Israel for ever: for he has chosen Judah to be the ruler; and of the house of Judah, the house of my father; and among the sons of my father he liked me to make me king over all Israel:

5 And of all my sons, (for the LORD has given me many sons,) he has chosen Solomon my son to sit on the throne of the kingdom of the LORD over Israel.

6 And he said to me, Solomon your son, he shall build my house and my courts: for I have chosen him to be my son, and I will be his father.

7 Moreover I will establish his kingdom for ever, if he be constant to do my commandments and my judgments, as at this day.

8 Now therefore in the sight of all Israel the congregation of the LORD, and in the audience of our God, keep and seek for all the commandments of the LORD your God: that you may possess this good land, and leave it for an inheritance for your children after you for ever.

9 And you, Solomon my son, know you the God of your father, and serve him with a perfect heart and with a willing mind: for the LORD searches all hearts, and understands all the imaginations of the thoughts: if you seek him, he will be found of you; but if you forsake him, he will cast you off for ever.

10 Take heed now; for the LORD has chosen you to build an house for the sanctuary: be strong, and do it.